diff options
author | Micah Lee <micah@micahflee.com> | 2019-05-29 18:21:53 -0700 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2019-05-29 18:21:53 -0700 |
commit | 50b2311409cd93814324a4570e8bdc5d032748c8 (patch) | |
tree | 82c8fcee517d8637487b01e9d847597f2e9f029c /onionshare_gui | |
parent | c53ecb0a0390541503fbf84c55a320ff1b7faab8 (diff) | |
download | onionshare-50b2311409cd93814324a4570e8bdc5d032748c8.tar.gz onionshare-50b2311409cd93814324a4570e8bdc5d032748c8.zip |
Generate a new static_url_path each time the server is stopped and started again
Diffstat (limited to 'onionshare_gui')
-rw-r--r-- | onionshare_gui/threads.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/onionshare_gui/threads.py b/onionshare_gui/threads.py index bee1b6bc..57e0f0af 100644 --- a/onionshare_gui/threads.py +++ b/onionshare_gui/threads.py @@ -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: |