|
|
|
@ -112,11 +112,6 @@ func initChain() (*gost.Chain, error) { |
|
|
|
wsOpts.UserAgent = node.Values.Get("agent") |
|
|
|
tr = gost.WSTransporter(wsOpts) |
|
|
|
case "wss": |
|
|
|
ips := strings.Split(node.Values.Get("ip"), ",") |
|
|
|
node.DialOptions = append(node.DialOptions, |
|
|
|
gost.IPDialOption(ips...), |
|
|
|
) |
|
|
|
|
|
|
|
wsOpts := &gost.WSOptions{} |
|
|
|
wsOpts.EnableCompression = toBool(node.Values.Get("compression")) |
|
|
|
wsOpts.ReadBufferSize, _ = strconv.Atoi(node.Values.Get("rbuf")) |
|
|
|
@ -204,6 +199,7 @@ func initChain() (*gost.Chain, error) { |
|
|
|
timeout, _ := strconv.Atoi(node.Values.Get("timeout")) |
|
|
|
node.DialOptions = append(node.DialOptions, |
|
|
|
gost.TimeoutDialOption(time.Duration(timeout)*time.Second), |
|
|
|
gost.IPDialOption(strings.Split(node.Values.Get("ip"), ",")...), |
|
|
|
) |
|
|
|
|
|
|
|
interval, _ := strconv.Atoi(node.Values.Get("ping")) |
|
|
|
|