mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-06 08:25:15 -04:00
Generate a new static_url_path each time the server is stopped and started again
This commit is contained in:
parent
c53ecb0a03
commit
50b2311409
2 changed files with 16 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue