summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Matilainen <jari.matilainen@istone.se>2017-06-04 19:47:30 +0200
committerJari Matilainen <jari.matilainen@istone.se>2017-06-04 19:47:30 +0200
commitf28c64a3dc1e66f9d1e49650d5b2ab15795b9e53 (patch)
tree73d17a0d56162e5bb5097a74ad2c061dab2174cf
parente84adeca15084a82c04ff6c3b5c7b8941c297322 (diff)
downloadirssi-f28c64a3dc1e66f9d1e49650d5b2ab15795b9e53.zip
Make backward compatible with ssl flags
-rw-r--r--src/fe-common/core/fe-server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-common/core/fe-server.c b/src/fe-common/core/fe-server.c
index 6e373139..75f857c2 100644
--- a/src/fe-common/core/fe-server.c
+++ b/src/fe-common/core/fe-server.c
@@ -124,7 +124,8 @@ static void cmd_server_add_modify(const char *data, gboolean add)
port = atoi(portstr);
else if (value != NULL && *value != '\0')
port = atoi(value);
- else if (g_hash_table_lookup(optlist, "tls"))
+ else if (g_hash_table_lookup(optlist, "tls") ||
+ g_hash_table_lookup(optlist, "ssl"))
port = DEFAULT_SERVER_ADD_TLS_PORT;
else
port = DEFAULT_SERVER_ADD_PORT;