Skip to content

Commit

Permalink
NET-600
Browse files Browse the repository at this point in the history
* Ext clients dns now properly set from ingress dns value provided that the individual ext client dns are not present.
  • Loading branch information
uGiFarukh committed Sep 12, 2023
1 parent 1e2fae0 commit 5c46df4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions controllers/ext_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,11 @@ func createExtClient(w http.ResponseWriter, r *http.Request) {
extclient.RemoteAccessClientID = customExtClient.RemoteAccessClientID
extclient.IngressGatewayID = nodeid

// set extclient dns to ingressdns if extclient dns is not explicitly set
if (extclient.DNS == "") && (node.IngressDNS != "") {
extclient.DNS = node.IngressDNS
}

extclient.Network = node.Network
host, err := logic.GetHost(node.HostID.String())
if err != nil {
Expand Down

0 comments on commit 5c46df4

Please sign in to comment.