forked from External/ergo
xline: Add ANDKILL param to kill all matching clients
This commit is contained in:
parent
3101f16478
commit
ebb9d629d7
5 changed files with 88 additions and 10 deletions
|
|
@ -1358,7 +1358,7 @@ func (server *Server) rehash() error {
|
|||
|
||||
server.clients.ByNickMutex.RLock()
|
||||
for _, client := range server.clients.ByNick {
|
||||
ipaddr := net.ParseIP(IPString(client.socket.conn.RemoteAddr()))
|
||||
ipaddr := client.IP()
|
||||
if ipaddr != nil {
|
||||
server.connectionLimits.AddClient(ipaddr, true)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue