bug fixed. don't jump out of the loop if obsaddr be replaced
@@ -127,9 +127,10 @@ func (as *autoNATService) handleDial(p peer.ID, obsaddr ma.Multiaddr, mpi *pb.Me
succ, newobsaddr := patchObsaddr(addr, obsaddr)
if succ == true {
addr = newobsaddr
- }
+ } else {
continue
}
+ }
if ip, err := manet.ToIP(addr); err != nil || !obsHost.Equal(ip) {
continue
