mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-29 01:06:16 -05:00
Display the URL without the slug for receive_public_mode in the CLI
This commit is contained in:
parent
9a076635c5
commit
b6a15cf6c7
@ -162,6 +162,12 @@ def main(cwd=None):
|
||||
common.settings.set('slug', web.slug)
|
||||
common.settings.save()
|
||||
|
||||
# Build the URL
|
||||
if receive and common.settings.get('receive_public_mode'):
|
||||
url = 'http://{0:s}'.format(app.onion_host)
|
||||
else:
|
||||
url = 'http://{0:s}/{1:s}'.format(app.onion_host, web.slug)
|
||||
|
||||
print('')
|
||||
if receive:
|
||||
print(strings._('receive_mode_downloads_dir').format(common.settings.get('downloads_dir')))
|
||||
@ -171,19 +177,19 @@ def main(cwd=None):
|
||||
|
||||
if stealth:
|
||||
print(strings._("give_this_url_receive_stealth"))
|
||||
print('http://{0:s}/{1:s}'.format(app.onion_host, web.slug))
|
||||
print(url)
|
||||
print(app.auth_string)
|
||||
else:
|
||||
print(strings._("give_this_url_receive"))
|
||||
print('http://{0:s}/{1:s}'.format(app.onion_host, web.slug))
|
||||
print(url)
|
||||
else:
|
||||
if stealth:
|
||||
print(strings._("give_this_url_stealth"))
|
||||
print('http://{0:s}/{1:s}'.format(app.onion_host, web.slug))
|
||||
print(url)
|
||||
print(app.auth_string)
|
||||
else:
|
||||
print(strings._("give_this_url"))
|
||||
print('http://{0:s}/{1:s}'.format(app.onion_host, web.slug))
|
||||
print(url)
|
||||
print('')
|
||||
print(strings._("ctrlc_to_stop"))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user