mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-03 07:12:27 +00:00
This commit is contained in:
parent
e1b958284e
commit
af13f0cd35
@ -196,7 +196,6 @@ func (s *Service) runStunForServer(ctx context.Context, addr string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
s.setNATType(natType)
|
s.setNATType(natType)
|
||||||
s.setExternalAddress(extAddr, addr)
|
|
||||||
l.Debugf("%s detected NAT type: %s via %s", s, natType, addr)
|
l.Debugf("%s detected NAT type: %s via %s", s, natType, addr)
|
||||||
|
|
||||||
// We can't punch through this one, so no point doing keepalives
|
// We can't punch through this one, so no point doing keepalives
|
||||||
@ -206,6 +205,8 @@ func (s *Service) runStunForServer(ctx context.Context, addr string) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
s.setExternalAddress(extAddr, addr)
|
||||||
|
|
||||||
s.stunKeepAlive(ctx, addr, extAddr)
|
s.stunKeepAlive(ctx, addr, extAddr)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user