Skip to content

Commit 9d3b572

Browse files
authored
Merge pull request #3 from jianxiaoguo/patch-1
fix(host): missing port
2 parents 542b7b8 + 970de2f commit 9d3b572

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

smartdns/monitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def __init__(self, ip_set, monitor):
2424
self.black_mapping = {}
2525

2626
def _check(self):
27-
host = urlparse(self.monitor["url"]).netloc
27+
host = urlparse(self.monitor["url"]).netloc.split(":")[0]
2828
for ip in self.ip_set:
2929
if ip not in self.black_mapping:
3030
self.black_mapping[ip] = 0

0 commit comments

Comments
 (0)