Skip to content

Commit 970de2f

Browse files
authored
fix(host): missing port
1 parent 542b7b8 commit 970de2f

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)