mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 12:04:51 +00:00
[GTKUI] Strip whitespace in the interface entry box
This commit is contained in:
parent
068cce353a
commit
05792809b5
1 changed files with 1 additions and 2 deletions
|
@ -592,8 +592,7 @@ class Preferences(component.Component):
|
|||
new_core_config["outgoing_ports"] = outgoing_ports
|
||||
new_core_config["random_outgoing_ports"] = \
|
||||
self.builder.get_object("chk_random_outgoing_ports").get_active()
|
||||
|
||||
incoming_address = self.builder.get_object("entry_interface").get_text()
|
||||
incoming_address = self.builder.get_object("entry_interface").get_text().strip()
|
||||
if deluge.common.is_ip(incoming_address) or not incoming_address:
|
||||
new_core_config["listen_interface"] = incoming_address
|
||||
new_core_config["peer_tos"] = self.builder.get_object("entry_peer_tos").get_text()
|
||||
|
|
Loading…
Add table
Reference in a new issue