Change fs thread number on config interface

This commit is contained in:
shortcutme 2019-11-20 14:07:04 +01:00
parent 6262c80886
commit 6c31a3b77e
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 31 additions and 2 deletions

View file

@ -21,9 +21,10 @@ class Config(object):
self.need_restart = False
self.keys_api_change_allowed = set([
"tor", "fileserver_port", "language", "tor_use_bridges", "trackers_proxy", "trackers",
"trackers_file", "open_browser", "log_level", "fileserver_ip_type", "ip_external", "offline"
"trackers_file", "open_browser", "log_level", "fileserver_ip_type", "ip_external", "offline",
"threads_fs_read", "threads_fs_write"
])
self.keys_restart_need = set(["tor", "fileserver_port", "fileserver_ip_type"])
self.keys_restart_need = set(["tor", "fileserver_port", "fileserver_ip_type", "threads_fs_read", "threads_fs_write"])
self.start_dir = self.getStartDir()
self.config_file = self.start_dir + "/zeronet.conf"