2
0
Эх сурвалжийг харах

add domain info to egress range

abhishek9686 1 сар өмнө
parent
commit
befdaa2c86

+ 1 - 0
controllers/egress.go

@@ -133,6 +133,7 @@ func createEgress(w http.ResponseWriter, r *http.Request) {
 					Action:   models.EgressUpdate,
 					Host:     *host,
 					EgressID: e.ID,
+					Domain:   e.Domain,
 					Node:     node,
 				})
 			}

+ 0 - 1
models/egress.go

@@ -12,5 +12,4 @@ type EgressReq struct {
 	Nat         bool           `json:"nat"`
 	Status      bool           `json:"status"`
 	IsInetGw    bool           `json:"is_internet_gateway"`
-	Dns         string         `json:"dns"`
 }

+ 1 - 0
models/host.go

@@ -145,6 +145,7 @@ type HostUpdate struct {
 	Node       Node
 	Signal     Signal
 	EgressID   string
+	Domain     string
 	NewMetrics Metrics
 }