mirror of https://github.com/octoleo/syncthing.git
parent
61b94b9ea5
commit
79ae24df76
|
@ -233,9 +233,8 @@ func (s *Service) verifyExistingLocked(ctx context.Context, mapping *Mapping, na
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delete addresses for NATDevice's that do not exist anymore
|
if nat, ok := nats[id]; !ok || len(extAddrs) == 0 {
|
||||||
nat, ok := nats[id]
|
// Delete addresses for NATDevice's that do not exist anymore
|
||||||
if !ok {
|
|
||||||
mapping.removeAddressLocked(id)
|
mapping.removeAddressLocked(id)
|
||||||
change = true
|
change = true
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue