diff options
author | Klaus Kämpf <kkaempf@suse.de> | 2011-06-10 12:01:59 +0200 |
---|---|---|
committer | Klaus Kämpf <kkaempf@suse.de> | 2011-06-10 12:01:59 +0200 |
commit | 503c6951b881b4d10704136dfd57174d5f6d4c59 (patch) | |
tree | 43d1f42d16f9ae81da7fabbd93dfd13aeb154628 | |
parent | 83cf8cba6cd9ffb69675bb1f45c55f2f5bf534de (diff) | |
download | wsmancli-503c6951b881b4d10704136dfd57174d5f6d4c59.tar.gz wsmancli-503c6951b881b4d10704136dfd57174d5f6d4c59.tar.xz wsmancli-503c6951b881b4d10704136dfd57174d5f6d4c59.zip |
Use https (port 5986) when cainfo is set.
This fixes the default port setting to match wsmc_create() call.
(upstream issue 3257661, Zoltan Micskei)
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/wsman.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ + + - fix the default port setting to match wsmc_create() call. Use + https (port 5986) when cainfo is set. + Version 2.2.6 - fix segfault in output_file handling (Chris Poblete) diff --git a/src/wsman.c b/src/wsman.c index 75f0c4a..4c34e78 100644 --- a/src/wsman.c +++ b/src/wsman.c @@ -395,7 +395,7 @@ static char wsman_parse_options(int argc, char **argv) // set default options if (server_port == 0) { - server_port = cainfo ? 5985 : 5986; + server_port = cainfo ? 5986 : 5985; } if (url_path == NULL) { if (strcmp(argv[1], "anonid") == 0) |