mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-02 14:36:15 -04:00
Move Censorship stuff into its own class. Early attempt at subprocessing out to meek (unfinished)
This commit is contained in:
parent
c9fa2308a7
commit
0989f2b133
4 changed files with 226 additions and 81 deletions
|
@ -27,13 +27,9 @@ from datetime import datetime
|
|||
from datetime import timedelta
|
||||
|
||||
from .common import Common, CannotFindTor
|
||||
from .censorship import CensorshipCircumvention
|
||||
from .web import Web
|
||||
from .onion import (
|
||||
TorErrorProtocolError,
|
||||
TorTooOldEphemeral,
|
||||
TorTooOldStealth,
|
||||
Onion,
|
||||
)
|
||||
from .onion import TorErrorProtocolError, TorTooOldEphemeral, TorTooOldStealth, Onion
|
||||
from .onionshare import OnionShare
|
||||
from .mode_settings import ModeSettings
|
||||
|
||||
|
@ -94,12 +90,7 @@ 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("--title", metavar="TITLE", default=None, help="Set a title")
|
||||
parser.add_argument(
|
||||
"--public",
|
||||
action="store_true",
|
||||
|
@ -409,7 +400,7 @@ def main(cwd=None):
|
|||
sys.exit(1)
|
||||
|
||||
# Warn about sending large files over Tor
|
||||
if web.share_mode.download_filesize >= 157286400: # 150mb
|
||||
if web.share_mode.download_filesize >= 157_286_400: # 150mb
|
||||
print("")
|
||||
print("Warning: Sending a large share could take hours")
|
||||
print("")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue