修改节点动态配置
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user