diff --git a/python/paddle_serving_client/httpclient.py b/python/paddle_serving_client/httpclient.py index dd771c97aa1ce7b2217d9147b40d64818bb4c2b8..46e98227b1d59e4458b8d409cabd14b8fbc5643f 100755 --- a/python/paddle_serving_client/httpclient.py +++ b/python/paddle_serving_client/httpclient.py @@ -202,7 +202,7 @@ class HttpClient(object): url = url[7:] self.http_s = "http://" url_parts = url.split(':') - if len(url_parts) != 2 or check_ip(url_parts[0]) == False: + if len(url_parts) != 2 or self.check_ip(url_parts[0]) == False: raise ValueError( "url not right, it should be like 127.0.0.1:9393 or http://127.0.0.1:9393" )