Fix argument parsing error
This commit is contained in:
parent
c5b47fe4a0
commit
c5c41f2d3e
1 changed files with 3 additions and 2 deletions
|
@ -290,8 +290,9 @@ class Config(object):
|
||||||
self.parseCommandline(argv, silent) # Parse argv
|
self.parseCommandline(argv, silent) # Parse argv
|
||||||
self.setAttributes()
|
self.setAttributes()
|
||||||
|
|
||||||
if self.fileserver_ip != "*" and self.fileserver_ip not in self.ip_local:
|
if not silent:
|
||||||
self.ip_local.append(self.fileserver_ip)
|
if self.fileserver_ip != "*" and self.fileserver_ip not in self.ip_local:
|
||||||
|
self.ip_local.append(self.fileserver_ip)
|
||||||
|
|
||||||
if silent: # Restore original functions
|
if silent: # Restore original functions
|
||||||
if self.parser.exited and self.action == "main": # Argument parsing halted, don't start ZeroNet with main action
|
if self.parser.exited and self.action == "main": # Argument parsing halted, don't start ZeroNet with main action
|
||||||
|
|
Loading…
Reference in a new issue