Explorar o código

import dns field from gw node

abhishek9686 hai 6 meses
pai
achega
50c3e3aaed
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      pro/controllers/users.go

+ 3 - 1
pro/controllers/users.go

@@ -1104,7 +1104,9 @@ func getUserRemoteAccessGwsV1(w http.ResponseWriter, r *http.Request) {
 			}
 
 			gws := userGws[node.Network]
-			extClient.DNS = node.IngressDNS
+			if extClient.DNS == "" {
+				extClient.DNS = node.IngressDNS
+			}
 			extClient.AllowedIPs = logic.GetExtclientAllowedIPs(extClient)
 			gws = append(gws, models.UserRemoteGws{
 				GwID:              node.ID.String(),