mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-02 14:36:15 -04:00
Merge pull request #1327 from micahflee/1306_customization
Allow custom title for each onion service
This commit is contained in:
commit
059a4425bd
18 changed files with 144 additions and 60 deletions
|
@ -143,6 +143,12 @@ def main(cwd=None):
|
|||
help="Filename of persistent session",
|
||||
)
|
||||
# General args
|
||||
parser.add_argument(
|
||||
"--title",
|
||||
metavar="TITLE",
|
||||
default=None,
|
||||
help="Set a title",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--public",
|
||||
action="store_true",
|
||||
|
@ -234,6 +240,7 @@ def main(cwd=None):
|
|||
connect_timeout = int(args.connect_timeout)
|
||||
config_filename = args.config
|
||||
persistent_filename = args.persistent
|
||||
title = args.title
|
||||
public = bool(args.public)
|
||||
autostart_timer = int(args.autostart_timer)
|
||||
autostop_timer = int(args.autostop_timer)
|
||||
|
@ -280,6 +287,7 @@ def main(cwd=None):
|
|||
|
||||
if mode_settings.just_created:
|
||||
# This means the mode settings were just created, not loaded from disk
|
||||
mode_settings.set("general", "title", title)
|
||||
mode_settings.set("general", "public", public)
|
||||
mode_settings.set("general", "autostart_timer", autostart_timer)
|
||||
mode_settings.set("general", "autostop_timer", autostop_timer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue