summaryrefslogtreecommitdiffstats
path: root/pyLoadCli.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-01-06 17:38:53 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-01-06 17:38:53 +0100
commitd56dcab5d48c8c4ec05f200f92bd35a1f977cd4f (patch)
tree6bc154635899269fddec8f8137476fd432a3edac /pyLoadCli.py
parentwebinterface fix (diff)
downloadpyload-d56dcab5d48c8c4ec05f200f92bd35a1f977cd4f.tar.xz
cli fix, webinterface db check
Diffstat (limited to 'pyLoadCli.py')
-rwxr-xr-xpyLoadCli.py18
1 files changed, 13 insertions, 5 deletions
diff --git a/pyLoadCli.py b/pyLoadCli.py
index b97a1c7eb..18efa7272 100755
--- a/pyLoadCli.py
+++ b/pyLoadCli.py
@@ -455,12 +455,20 @@ if __name__ == "__main__":
)
else:
- username = raw_input("Username:")
- address = raw_input("Adress:")
- port = raw_input("Port:")
- password = raw_input("Password:")
+ username = raw_input("Username: ")
+ address = raw_input("Adress: ")
+ port = raw_input("Port: ")
+ ssl = raw_input("Use SSL? (y/[n])")
+ if ssl == "y":
+ ssl = "s"
+ else:
+ ssl = ""
+
+ from getpass import getpass
+ password = getpass("Password: ")
- server_url = "http://%s:%s@%s:%s/" % (
+ server_url = "http%s://%s:%s@%s:%s/" % (
+ ssl,
username,
password,
address,