Fix argument parsing error

This commit is contained in:
shortcutme 2017-02-27 00:05:08 +01:00
parent c5b47fe4a0
commit c5c41f2d3e
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 3 additions and 2 deletions

View File

@ -290,8 +290,9 @@ class Config(object):
self.parseCommandline(argv, silent) # Parse argv
self.setAttributes()
if self.fileserver_ip != "*" and self.fileserver_ip not in self.ip_local:
self.ip_local.append(self.fileserver_ip)
if not silent:
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 self.parser.exited and self.action == "main": # Argument parsing halted, don't start ZeroNet with main action