From d56dcab5d48c8c4ec05f200f92bd35a1f977cd4f Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 6 Jan 2010 17:38:53 +0100 Subject: cli fix, webinterface db check --- pyLoadCli.py | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'pyLoadCli.py') 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, -- cgit v1.2.3