summaryrefslogtreecommitdiffstats
path: root/pyLoadCli.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyLoadCli.py')
-rwxr-xr-xpyLoadCli.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/pyLoadCli.py b/pyLoadCli.py
index 2a03c8e59..2d38ab4ca 100755
--- a/pyLoadCli.py
+++ b/pyLoadCli.py
@@ -250,7 +250,11 @@ if __name__=='__main__':
config = ConfigParser.SafeConfigParser()
config.read('config')
- server_url = "https://%s:%s@%s:%s/" % (
+ ssl = ""
+ if config.get("ssl", "activated") == "True":
+ ssl = "s"
+ server_url = "http%s://%s:%s@%s:%s/" % (
+ ssl,
config.get("remote", "username"),
config.get("remote", "password"),
config.get("remote", "listenaddr"),
@@ -260,7 +264,7 @@ if __name__=='__main__':
if len(extraparams) == 1:
server_url = sys.argv[1]
else:
- print "URL scheme: https://user:password@host:port/"
+ print "URL scheme: http[s]://user:password@host:port/"
server_url = raw_input("URL: ")
curses.wrapper(main)