QuackatronHQ / Gigarepo

Using bytes.Equal to compare two net.IP SCC-SA1021
Bug risk
Major
1 occurrence in this check
use net.IP.Equal to compare net.IPs, not bytes.Equal
42		return false
43	}
44
45	return bytes.Equal(allowedIP, net.ParseIP(addr)) // Check if the user-provided IP is allowed.46}
47
48func dialSSH(user, password string, port int) (*ssh.Client, func(), error) {