mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 12:04:51 +00:00
Fix issue in get_tracker_host when the torrent has no tracker
This commit is contained in:
parent
3584fa9e41
commit
2af3869143
1 changed files with 1 additions and 1 deletions
|
@ -521,7 +521,7 @@ class Torrent:
|
|||
# Check if hostname is an IP address and just return it if that's the case
|
||||
import socket
|
||||
try:
|
||||
socket.inet_aton(url.hostname)
|
||||
socket.inet_aton(host)
|
||||
except socket.error:
|
||||
pass
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue