Skip to content

Commit 479c521

Browse files
authored
Update transmission-trackers.py
IPv6 Trackers support.
1 parent 4eb071a commit 479c521

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

transmission-trackers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def parse(txt):
7070

7171
def validateTrackerURL(url, dns=True):
7272
try:
73-
h = urlparse(url).netloc.split(':', 1)[0]
73+
h = ':'.join(urlparse(url).netloc.split(':')[0:-1])
7474
except:
7575
lg("Tracker URL '{}' is malformed".format(url))
7676
return False

0 commit comments

Comments
 (0)