summaryrefslogtreecommitdiff
path: root/onionshare_gui
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2019-05-29 18:21:53 -0700
committerMicah Lee <micah@micahflee.com>2019-05-29 18:21:53 -0700
commit50b2311409cd93814324a4570e8bdc5d032748c8 (patch)
tree82c8fcee517d8637487b01e9d847597f2e9f029c /onionshare_gui
parentc53ecb0a0390541503fbf84c55a320ff1b7faab8 (diff)
downloadonionshare-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.py3
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: