Bläddra i källkod

add: secretUrl

Ben 1 år sedan
förälder
incheckning
6febbc1aa3
2 ändrade filer med 2 tillägg och 0 borttagningar
  1. 1 0
      internal/dto/response.go
  2. 1 0
      internal/server/server.go

+ 1 - 0
internal/dto/response.go

@@ -60,6 +60,7 @@ type Node struct {
 	CountryLabel string `json:"countryLabel"`
 	Ip           string `json:"ip"`
 	Icon         string `json:"icon"`
+	SecretUrl    string `json:"secretUrl"`
 }
 
 type ConfigResponse struct {

+ 1 - 0
internal/server/server.go

@@ -226,5 +226,6 @@ func convert2DtoNode(node *model.Node, seq int) *dto.Node {
 		City:         node.City,
 		CountryLabel: fmt.Sprintf("%s - %d", countryLabels[node.CountryCode], seq+1),
 		Icon:         icons[node.CountryCode],
+		SecretUrl:    fmt.Sprintf("http://v.starttransfernow.com/secret?ip=%s", node.Ip),
 	}
 }