mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-13 21:14:55 +00:00
Fix #2171 : Add Peer dialog stops responding if empty or invalid values entered
This commit is contained in:
parent
610cd7dd33
commit
e5f56e2fdd
@ -386,6 +386,7 @@ class PeersTab(Tab):
|
|||||||
response = peer_dialog.run()
|
response = peer_dialog.run()
|
||||||
if response:
|
if response:
|
||||||
value = txt_ip.get_text()
|
value = txt_ip.get_text()
|
||||||
|
if value and ':' in value:
|
||||||
if ']' in value:
|
if ']' in value:
|
||||||
#ipv6
|
#ipv6
|
||||||
ip = value.split("]")[0][1:]
|
ip = value.split("]")[0][1:]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user