X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsocket.cpp;h=6fc7b13f8fc967e25bf248d8c08137ac9dd1b187;hb=216877cc5b595b5b6bbc5f953e226618201cc0f6;hp=98ff3e00cccf80146eec50d8e3f39336f0978bf2;hpb=46a39046196f55b52336e19662bb7bac85b731ac;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/socket.cpp b/src/socket.cpp index 98ff3e00c..6fc7b13f8 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -105,6 +105,7 @@ int InspIRCd::BindPorts(FailedPortList &failed_ports) { if ((**n).bind_desc == bind_readable) { + (*n)->bind_tag = tag; // Replace tag, we know addr and port match, but other info (type, ssl) may not skip = true; old_ports.erase(n); break; @@ -312,7 +313,7 @@ irc::sockets::cidr_mask::cidr_mask(const std::string& mask) } else { - int range = atoi(mask.substr(bits_chars + 1).c_str()); + int range = ConvToInt(mask.substr(bits_chars + 1)); irc::sockets::aptosa(mask.substr(0, bits_chars), 0, sa); sa2cidr(*this, sa, range); }