提交 d8f23f28 编写于 作者: H HexToString

fix bug

上级 6e2d0889
...@@ -202,7 +202,7 @@ class HttpClient(object): ...@@ -202,7 +202,7 @@ class HttpClient(object):
url = url[7:] url = url[7:]
self.http_s = "http://" self.http_s = "http://"
url_parts = url.split(':') 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( raise ValueError(
"url not right, it should be like 127.0.0.1:9393 or http://127.0.0.1:9393" "url not right, it should be like 127.0.0.1:9393 or http://127.0.0.1:9393"
) )
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册