mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 16:08:40 +00:00
Fix #2171 : Add Peer dialog stops responding if empty or invalid values entered
This commit is contained in:
parent
47958f708f
commit
0a36baa7d7
1 changed files with 12 additions and 11 deletions
|
@ -385,6 +385,7 @@ class PeersTab(Tab):
|
|||
response = peer_dialog.run()
|
||||
if response:
|
||||
value = txt_ip.get_text()
|
||||
if value and ':' in value:
|
||||
if ']' in value:
|
||||
#ipv6
|
||||
ip = value.split("]")[0][1:]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue