Explorar el Código

host-gw: bug fix cmp for inequality of ip addrs

Eugene Yakubovich hace 9 años
padre
commit
c162a91db1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      backend/hostgw/hostgw.go

+ 1 - 1
backend/hostgw/hostgw.go

@@ -61,7 +61,7 @@ func (rb *HostgwBackend) Init(extIface *net.Interface, extIaddr net.IP, extEaddr
 	rb.extIface = extIface
 	rb.extIaddr = extIaddr
 
-	if extIaddr.Equal(extEaddr) {
+	if !extIaddr.Equal(extEaddr) {
 		return nil, fmt.Errorf("your PublicIP differs from interface IP, meaning that probably you're on a NAT, which is not supported by host-gw backend")
 	}