mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 05:47:50 +00:00
Fix issue in get_tracker_host when the torrent has no tracker
This commit is contained in:
parent
3584fa9e41
commit
2af3869143
@ -521,7 +521,7 @@ class Torrent:
|
|||||||
# Check if hostname is an IP address and just return it if that's the case
|
# Check if hostname is an IP address and just return it if that's the case
|
||||||
import socket
|
import socket
|
||||||
try:
|
try:
|
||||||
socket.inet_aton(url.hostname)
|
socket.inet_aton(host)
|
||||||
except socket.error:
|
except socket.error:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user