Explorar el Código

fix: add metadata field to create RAG

the_aceix hace 1 año
padre
commit
78180c86be
Se han modificado 2 ficheros con 2 adiciones y 0 borrados
  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