[Core] Fix strip None in set_listen_on
Trying to strip None will not work so combined the check as a condition for the strip.
This commit is contained in:
parent
bd78bd2643
commit
0dbbb51cff
|
@ -210,8 +210,10 @@ class PreferencesManager(component.Component):
|
||||||
self.config['listen_random_port'] = None
|
self.config['listen_random_port'] = None
|
||||||
listen_ports = self.config['listen_ports']
|
listen_ports = self.config['listen_ports']
|
||||||
|
|
||||||
interface = str(self.config['listen_interface'].strip())
|
if self.config['listen_interface']:
|
||||||
interface = interface if interface else '0.0.0.0'
|
interface = self.config['listen_interface'].strip()
|
||||||
|
else:
|
||||||
|
interface = '0.0.0.0'
|
||||||
|
|
||||||
log.debug(
|
log.debug(
|
||||||
'Listen Interface: %s, Ports: %s with use_sys_port: %s',
|
'Listen Interface: %s, Ports: %s with use_sys_port: %s',
|
||||||
|
|
Loading…
Reference in New Issue