Browse Source

Merge pull request #1355 from aboch/advi

Check for advertise IP when deriving ipsec nodes
Madhu Venugopal 9 years ago
parent
commit
145d07fbe0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libnetwork/drivers/overlay/encryption.go

+ 1 - 1
libnetwork/drivers/overlay/encryption.go

@@ -95,7 +95,7 @@ func (d *driver) checkEncryption(nid string, rIP net.IP, vxlanID uint32, isLocal
 	switch {
 	case isLocal:
 		if err := d.peerDbNetworkWalk(nid, func(pKey *peerKey, pEntry *peerEntry) bool {
-			if !lIP.Equal(pEntry.vtep) {
+			if !aIP.Equal(pEntry.vtep) {
 				nodes[pEntry.vtep.String()] = pEntry.vtep
 			}
 			return false