forked from Mxmilu666/frp
chore(ci): update Go version and golangci-lint version
feat(linter): add new linters G118 and G704 refactor(proxy): optimize proxy status slice initialization fix(api): clarify comment regarding URL construction fix(deps): upgrade github.com/hashicorp/yamux to v0.1.2 docs(flags): improve DNS server flag description refactor(controller): simplify port range return logic refactor(featuregate): optimize enabled features string conversion
This commit is contained in:
@@ -299,7 +299,7 @@ func runClientWithTokenAndIDs(token string, ids []string, unsafeFeatures *securi
|
||||
|
||||
// Build URL with query parameters
|
||||
url := fmt.Sprintf("%s/api/v1/tunnel/frpc/config?token=%s&id=%s", apiServer, token, strings.Join(ids, ","))
|
||||
// #nosec G107 -- URL is constructed from trusted source (environment variable or hardcoded)
|
||||
// URL is constructed from trusted source (environment variable or hardcoded)
|
||||
req, err := http.NewRequest("GET", url, nil)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to create API request: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user