This commit fix the hard code for IPv4, it doesn't support IPv6
Test Plan:
PASS - Start the O2 API with IPv6, it works
PASS - Start the O2 API with IPv4, it works
PASS - Connect with IPv4 O-Cloud environment
PASS - Connect with IPv6 O-Cloud environment
Issue-ID: INF-455
Change-Id: I99d37846377d56d580f9553855349051ceeccf53
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
(cherry picked from commit
5c21c181b1483de86f96d3fab314bda0b2f2b492)