mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-09 14:46:36 +08:00
Merge pull request #3182 from gravitl/NET-1759
NET-1759: ignore failover requests to failover node
This commit is contained in:
commit
06e414f0e8
1 changed files with 8 additions and 0 deletions
|
@ -203,6 +203,14 @@ func failOverME(w http.ResponseWriter, r *http.Request) {
|
|||
)
|
||||
return
|
||||
}
|
||||
if peerNode.IsFailOver {
|
||||
logic.ReturnErrorResponse(
|
||||
w,
|
||||
r,
|
||||
logic.FormatError(errors.New("peer is acting as failover"), "badrequest"),
|
||||
)
|
||||
return
|
||||
}
|
||||
if node.IsFailOver {
|
||||
logic.ReturnErrorResponse(
|
||||
w,
|
||||
|
|
Loading…
Add table
Reference in a new issue