From 05792809b5f650d9a3bd8195986cd7bba70d16c2 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Tue, 18 Feb 2014 19:15:08 +0000 Subject: [PATCH] [GTKUI] Strip whitespace in the interface entry box --- deluge/ui/gtkui/preferences.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deluge/ui/gtkui/preferences.py b/deluge/ui/gtkui/preferences.py index 98e39b64b..d7c6fb16b 100644 --- a/deluge/ui/gtkui/preferences.py +++ b/deluge/ui/gtkui/preferences.py @@ -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()