mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-07 06:13:03 -04:00
Allow logging even if autostop is enabled
This commit is contained in:
parent
4128cad08f
commit
c54d9f82c7
1 changed files with 1 additions and 5 deletions
|
@ -124,7 +124,7 @@ def main(cwd=None):
|
||||||
action="store_true",
|
action="store_true",
|
||||||
dest="log_filenames",
|
dest="log_filenames",
|
||||||
default=False,
|
default=False,
|
||||||
help="Share files: Log individual names of shared files as they are downloaded (requires autostop sharing to be disabled)"
|
help="Log file download activity to stdout"
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--qr",
|
"--qr",
|
||||||
|
@ -308,10 +308,6 @@ def main(cwd=None):
|
||||||
if persistent_filename:
|
if persistent_filename:
|
||||||
mode_settings.set(mode, "filenames", filenames)
|
mode_settings.set(mode, "filenames", filenames)
|
||||||
|
|
||||||
if autostop_sharing and log_filenames:
|
|
||||||
print("Autostop sharing is enabled, thus individual files cannot be downloaded (or logged). Set both --no-autostop-sharing and --log-filenames for intended functionality.")
|
|
||||||
sys.exit()
|
|
||||||
|
|
||||||
# In receive mode, you must allows either text, files, or both
|
# In receive mode, you must allows either text, files, or both
|
||||||
if mode == "receive" and disable_text and disable_files:
|
if mode == "receive" and disable_text and disable_files:
|
||||||
print("You cannot disable both text and files")
|
print("You cannot disable both text and files")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue