Browse Source

unnecessary use of fmt.Sprintf

MHSanaei 1 year ago
parent
commit
08e259327b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      web/service/xray_setting.go

+ 1 - 1
web/service/xray_setting.go

@@ -80,7 +80,7 @@ func (s *XraySettingService) RegWarp(secretKey string, publicKey string) (string
 	hostName, _ := os.Hostname()
 	data := fmt.Sprintf(`{"key":"%s","tos":"%s","type": "PC","model": "x-ui", "name": "%s"}`, publicKey, tos, hostName)
 
-	url := fmt.Sprintf("https://api.cloudflareclient.com/v0a2158/reg")
+	url := "https://api.cloudflareclient.com/v0a2158/reg"
 
 	req, err := http.NewRequest("POST", url, bytes.NewBuffer([]byte(data)))
 	if err != nil {