1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 09:43:13 +02:00

Add sockaddrs::str to stringify a sockaddrs properly.

Also clean up the socket code slightly.
This commit is contained in:
Sadie Powell
2022-12-17 12:24:32 +00:00
parent dfdcd3021a
commit f6e5e6a2b4
3 changed files with 45 additions and 9 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ class ProxyConnect : public ConnectionSocket
reason = reason.replace_all_cs("%p", stringify(this->conaddr.port()));
BotInfo *OperServ = Config->GetClient("OperServ");
Log(OperServ) << "PROXYSCAN: Open " << this->GetType() << " proxy found on " << this->conaddr.addr() << ":" << this->conaddr.port() << " (" << reason << ")";
Log(OperServ) << "PROXYSCAN: Open " << this->GetType() << " proxy found on " << this->conaddr.str() << " (" << reason << ")";
XLine *x = new XLine("*@" + this->conaddr.addr(), OperServ ? OperServ->nick : "", Anope::CurTime + this->proxy.duration, reason, XLineManager::GenerateUID());
if (add_to_akill && akills)
{