mirror of
https://github.com/KusakabeShi/EtherGuard-VPN.git
synced 2024-11-25 08:43:08 +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 == "" {
|
||||
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!")
|
||||
|
Loading…
Reference in New Issue
Block a user