Преглед на файлове

fix: add metadata field to create RAG

the_aceix преди 1 година
родител
ревизия
78180c86be
променени са 2 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 1 0
      logic/gateway.go
  2. 1 0
      models/structs.go

+ 1 - 0
logic/gateway.go

@@ -170,6 +170,7 @@ func CreateIngressGateway(netid string, nodeid string, ingress models.IngressReq
 		}
 	}
 	node.SetLastModified()
+	node.Metadata = ingress.Metadata
 	if node.Metadata == "" {
 		node.Metadata = "This host can be used for remote access"
 	}

+ 1 - 0
models/structs.go

@@ -197,6 +197,7 @@ type HostRelayRequest struct {
 type IngressRequest struct {
 	ExtclientDNS      string `json:"extclientdns"`
 	IsInternetGateway bool   `json:"is_internet_gw"`
+	Metadata          string `json:"metadata"`
 }
 
 // InetNodeReq - exit node request struct