From e7eb26416ed1402b4542c6faa60f246481011f42 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sat, 9 Jun 2018 21:30:09 +0100 Subject: [PATCH] [Core] Fix strip None in outgoing_interface Trying to strip None will not work so do this after checks for falseness. --- deluge/core/preferencesmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/core/preferencesmanager.py b/deluge/core/preferencesmanager.py index 9d0e9549c..8d6207497 100644 --- a/deluge/core/preferencesmanager.py +++ b/deluge/core/preferencesmanager.py @@ -192,9 +192,9 @@ class PreferencesManager(component.Component): def _on_set_outgoing_interface(self, key, value): """ Set the adapter name for outgoing BitTorrent connections.""" - value = value.strip() if not value or deluge.common.is_ip(value): value = '' + value = value.strip() self.core.apply_session_settings({'outgoing_interfaces': value}) def _on_set_random_port(self, key, value):