mirror of
https://github.com/KusakabeShi/EtherGuard-VPN.git
synced 2025-02-18 00:00:47 +01:00
do not update endpoint for static peer
This commit is contained in:
parent
9e6ab49675
commit
919d13baa3
@ -757,6 +757,9 @@ func (device *Device) RoutineTryReceivedEndpoint() {
|
|||||||
if connurl == "" {
|
if connurl == "" {
|
||||||
continue
|
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
|
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 {
|
if err != nil {
|
||||||
device.log.Errorf("Bind " + connurl + " failed!")
|
device.log.Errorf("Bind " + connurl + " failed!")
|
||||||
|
Loading…
Reference in New Issue
Block a user