Generate a new static_url_path each time the server is stopped and started again

This commit is contained in:
Micah Lee 2019-05-29 18:21:53 -07:00
parent c53ecb0a03
commit 50b2311409
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
2 changed files with 16 additions and 5 deletions

View file

@ -42,6 +42,9 @@ class OnionThread(QtCore.QThread):
def run(self):
self.mode.common.log('OnionThread', 'run')
# Make a new static URL path for each new share
self.mode.web.generate_static_url_path()
# Choose port and password early, because we need them to exist in advance for scheduled shares
self.mode.app.stay_open = not self.mode.common.settings.get('close_after_first_download')
if not self.mode.app.port: