use netutils.ParseIPSloppy

This commit is contained in:
Lars Ekman 2022-12-23 14:19:28 +01:00
parent dc86bdc3aa
commit 68d78c89ec

View File

@ -705,7 +705,7 @@ func CanUseIPVSProxier(ipvs utilipvs.Interface, ipsetver IPSetVersioner, schedul
// from documentation is not unheard of, so the restriction to not use the TEST-NET-2 range
// must be documented.
vs := utilipvs.VirtualServer{
Address: net.ParseIP("198.51.100.0"),
Address: netutils.ParseIPSloppy("198.51.100.0"),
Protocol: "TCP",
Port: 20000,
Scheduler: scheduler,