diff --git a/ssh/server.go b/ssh/server.go index 37df1b3..9037470 100644 --- a/ssh/server.go +++ b/ssh/server.go @@ -242,7 +242,7 @@ func checkSourceAddress(addr net.Addr, sourceAddr string) error { } if allowedIP := net.ParseIP(sourceAddr); allowedIP != nil { - if bytes.Equal(allowedIP, tcpAddr.IP) { + if allowedIP.Equal(tcpAddr.IP) { return nil } } else {