mirror of
https://github.com/anope/anope.git
synced 2026-06-27 09:06:38 +02:00
Don't enforce session limit on clients with no IP on Unreal, fix typo in /cs down syntax, fix os_session messages to reference ip
This commit is contained in:
@@ -148,6 +148,11 @@ void sockaddrs::pton(int type, const Anope::string &address, int pport)
|
||||
|
||||
void sockaddrs::ntop(int type, const void *src)
|
||||
{
|
||||
char buf[INET6_ADDRSTRLEN];
|
||||
|
||||
if (inet_ntop(type, src, buf, sizeof(buf)) != buf)
|
||||
throw SocketException("Invalid addr");
|
||||
|
||||
switch (type)
|
||||
{
|
||||
case AF_INET:
|
||||
|
||||
Reference in New Issue
Block a user