do not update endpoint for static peer

This commit is contained in:
KusakabeSi 2022-03-01 08:40:07 +00:00
parent 9e6ab49675
commit 919d13baa3

View File

@ -757,6 +757,9 @@ func (device *Device) RoutineTryReceivedEndpoint() {
if connurl == "" {
continue
}
if thepeer.StaticConn {
continue
}
err := thepeer.SetEndpointFromConnURL(connurl, device.enabledAf, device.EdgeConfig.AfPrefer, thepeer.StaticConn) //trying to bind first url in the list and wait ConnNextTry seconds
if err != nil {
device.log.Errorf("Bind " + connurl + " failed!")