Skip to content

Commit

Permalink
Merge pull request #2192 from gravitl/rm_proxy_enable
Browse files Browse the repository at this point in the history
remove random update of host
  • Loading branch information
0xdcarns authored Apr 11, 2023
2 parents b8858bb + 1afad1f commit 9390c06
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions controllers/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -653,16 +653,6 @@ func updateNode(w http.ResponseWriter, r *http.Request) {
logic.ReturnErrorResponse(w, r, logic.FormatError(err, "internal"))
return
}
if newNode.IsIngressGateway {
host.ProxyEnabled = true
err := logic.UpsertHost(host)
if err != nil {
logger.Log(0, r.Header.Get("user"),
fmt.Sprintf("failed to update host [ %s ]: %v", host.ID.String(), err))
logic.ReturnErrorResponse(w, r, logic.FormatError(err, "internal"))
return
}
}
relayedUpdate := false
if currentNode.IsRelayed && (currentNode.Address.String() != newNode.Address.String() || currentNode.Address6.String() != newNode.Address6.String()) {
relayedUpdate = true
Expand Down

0 comments on commit 9390c06

Please sign in to comment.