Browse Source

Merge pull request #264 from eyakubovich/host-gw-bug

host-gw: bug fix cmp for inequality of ip addrs
Eugene Yakubovich 9 years ago
parent
commit
613c5c19f7
1 changed files with 1 additions and 1 deletions
  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")
 	}