修改节点动态配置

This commit is contained in:
2026-06-16 14:12:44 +08:00
parent 25cacf0bca
commit 49d2df54f5
3 changed files with 2 additions and 10 deletions

View File

@@ -42,7 +42,7 @@ type gostClient struct {
var GostInitializer = func(host string, port int, pathPrefix, username, password string) GostClient {
baseURL := strings.TrimSpace(host)
if !strings.Contains(baseURL, "://") {
baseURL = fmt.Sprintf("http://%s:%d", baseURL, port)
baseURL = fmt.Sprintf("https://%s", baseURL)
}
return &gostClient{