Fix reset file server port with config web interface

This commit is contained in:
shortcutme 2020-06-30 17:04:09 +02:00
parent 635c3b27cd
commit ddbd5c7b19
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
5 changed files with 33 additions and 12 deletions

View file

@ -49,6 +49,7 @@ class FileServer(ConnectionServer):
raise Exception("Can't find bindable port")
if not config.tor == "always":
config.saveValue("fileserver_port", port) # Save random port value for next restart
config.arguments.fileserver_port = port
ConnectionServer.__init__(self, ip, port, self.handleRequest)
self.log.debug("Supported IP types: %s" % self.supported_ip_types)