*
* Copyright (C) 2018 Puck Meerburg <puck@puckipedia.com>
* Copyright (C) 2018 Dylan Frank <b00mx0r@aureus.pw>
- * Copyright (C) 2016-2019 Sadie Powell <sadie@witchery.services>
+ * Copyright (C) 2016-2020 Sadie Powell <sadie@witchery.services>
* Copyright (C) 2012-2016 Attila Molnar <attilamolnar@hush.com>
* Copyright (C) 2012, 2019 Robby <robby@chatbelgie.be>
* Copyright (C) 2012 ChrisTX <xpipe@hotmail.de>
for (std::vector<ListenSocket*>::const_iterator i = ServerInstance->ports.begin(); i != ServerInstance->ports.end(); ++i)
{
ListenSocket* ls = *i;
+ std::stringstream portentry;
+
const std::string type = ls->bind_tag->getString("type", "clients", 1);
- const std::string hook = ls->bind_tag->getString("ssl", "plaintext", 1);
+ portentry << ls->bind_sa.str() << " (type: " << type;
+
+ const std::string hook = ls->bind_tag->getString("hook");
+ if (!hook.empty())
+ portentry << ", hook: " << hook;
+
+ const std::string sslprofile = ls->bind_tag->getString("sslprofile", ls->bind_tag->getString("ssl"));
+ if (!sslprofile.empty())
+ portentry << ", ssl profile: " << sslprofile;
- stats.AddRow(249, ls->bind_sa.str() + " (" + type + ", " + hook + ")");
+ portentry << ')';
+ stats.AddRow(249, portentry.str());
}
}
break;