Skip to content

Commit

Permalink
unnecessary use of fmt.Sprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
MHSanaei committed Jan 26, 2024
1 parent 98384ac commit 08e2593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/service/xray_setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 08e2593

Please sign in to comment.