diff --git a/copyparty/__main__.py b/copyparty/__main__.py index d50f7c8a..71b393ee 100644 --- a/copyparty/__main__.py +++ b/copyparty/__main__.py @@ -206,6 +206,7 @@ def main(): ap.add_argument("--urlform", type=str, default="print,get", help="how to handle url-forms") ap.add_argument("--ssl-ver", type=str, help="ssl/tls versions to allow") ap.add_argument("--https-only", action="store_true", help="disable plaintext") + ap.add_argument("--http-only", action="store_true", help="disable ssl/tls") al = ap.parse_args() # fmt: on diff --git a/copyparty/httpconn.py b/copyparty/httpconn.py index e0d43219..bbc7264c 100644 --- a/copyparty/httpconn.py +++ b/copyparty/httpconn.py @@ -107,6 +107,8 @@ class HttpConn(object): self.sr = None if self.args.https_only: is_https = True + elif self.args.http_only: + is_https = False else: is_https = self._detect_https()