mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-06 08:28:39 +00:00
Fix issue in get_tracker_host when the torrent has no tracker
This commit is contained in:
parent
42cceabd8e
commit
8deee64007
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Deluge 1.1.0_RC4 (In Development)
|
||||||
|
Core:
|
||||||
|
* Fix issue in get_tracker_host when the torrent has no tracker
|
||||||
|
|
||||||
Deluge 1.1.0_RC3 (05 January 2009)
|
Deluge 1.1.0_RC3 (05 January 2009)
|
||||||
Core:
|
Core:
|
||||||
* Fix applying proxy settings
|
* Fix applying proxy settings
|
||||||
|
|
|
@ -522,7 +522,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…
Add table
Add a link
Reference in a new issue