mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 01:18:39 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue