mirror of
https://github.com/gravitl/netmaker.git
synced 2026-04-22 16:07:11 +08:00
NM-244: reset auto relay on disconnect
This commit is contained in:
+1
-1
@@ -585,7 +585,7 @@ func updateNode(w http.ResponseWriter, r *http.Request) {
|
||||
)
|
||||
return
|
||||
}
|
||||
if currentNode.IsAutoRelay && !newNode.IsAutoRelay {
|
||||
if currentNode.IsAutoRelay && (!newNode.IsAutoRelay || !newNode.Connected) {
|
||||
logic.ResetAutoRelay(newNode)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user