diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-01-06 17:38:53 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-01-06 17:38:53 +0100 |
commit | d56dcab5d48c8c4ec05f200f92bd35a1f977cd4f (patch) | |
tree | 6bc154635899269fddec8f8137476fd432a3edac /pyLoadCli.py | |
parent | webinterface fix (diff) | |
download | pyload-d56dcab5d48c8c4ec05f200f92bd35a1f977cd4f.tar.xz |
cli fix, webinterface db check
Diffstat (limited to 'pyLoadCli.py')
-rwxr-xr-x | pyLoadCli.py | 18 |
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, |