mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 12:04:10 +00:00
[Core] Fix strip None in outgoing_interface
Trying to strip None will not work so do this after checks for falseness.
This commit is contained in:
parent
b2b7703081
commit
e7eb26416e
@ -192,9 +192,9 @@ class PreferencesManager(component.Component):
|
|||||||
|
|
||||||
def _on_set_outgoing_interface(self, key, value):
|
def _on_set_outgoing_interface(self, key, value):
|
||||||
""" Set the adapter name for outgoing BitTorrent connections."""
|
""" Set the adapter name for outgoing BitTorrent connections."""
|
||||||
value = value.strip()
|
|
||||||
if not value or deluge.common.is_ip(value):
|
if not value or deluge.common.is_ip(value):
|
||||||
value = ''
|
value = ''
|
||||||
|
value = value.strip()
|
||||||
self.core.apply_session_settings({'outgoing_interfaces': value})
|
self.core.apply_session_settings({'outgoing_interfaces': value})
|
||||||
|
|
||||||
def _on_set_random_port(self, key, value):
|
def _on_set_random_port(self, key, value):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user