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