fix: hysteria URI Scheme 解析问题
This commit is contained in:
parent
07522d3c2e
commit
94648989b8
1 changed files with 4 additions and 12 deletions
|
@ -71,21 +71,13 @@ func ConvertsV2Ray(buf []byte) ([]map[string]any, error) {
|
||||||
hysteria["type"] = scheme
|
hysteria["type"] = scheme
|
||||||
hysteria["server"] = urlHysteria.Hostname()
|
hysteria["server"] = urlHysteria.Hostname()
|
||||||
hysteria["port"] = urlHysteria.Port()
|
hysteria["port"] = urlHysteria.Port()
|
||||||
hysteria["sni"] = query.Get("server_name")
|
hysteria["sni"] = query.Get("peer")
|
||||||
hysteria["obfs"] = query.Get("obfs")
|
hysteria["obfs"] = query.Get("obfs")
|
||||||
hysteria["alpn"] = query.Get("alpn")
|
hysteria["alpn"] = query.Get("alpn")
|
||||||
hysteria["auth"] = query.Get("auth")
|
hysteria["auth_str"] = query.Get("auth")
|
||||||
hysteria["auth_str"] = query.Get("auth_str")
|
|
||||||
hysteria["protocol"] = query.Get("protocol")
|
hysteria["protocol"] = query.Get("protocol")
|
||||||
hysteria["down"] = query.Get("down_mbps")
|
hysteria["down_mbps"], _ = strconv.Atoi(query.Get("downmbps"))
|
||||||
hysteria["up"] = query.Get("up")
|
hysteria["up_mbps"], _ = strconv.Atoi(query.Get("upmbps"))
|
||||||
hysteria["down_mbps"], _ = strconv.Atoi(query.Get("down_mbps"))
|
|
||||||
hysteria["up_mbps"], _ = strconv.Atoi(query.Get("up_mbps"))
|
|
||||||
hysteria["ca"] = query.Get("ca")
|
|
||||||
hysteria["ca_str"] = query.Get("ca_str")
|
|
||||||
hysteria["recv_window_conn"], _ = strconv.Atoi(query.Get("recv_window_conn"))
|
|
||||||
hysteria["recv_window"], _ = strconv.Atoi(query.Get("recv_window"))
|
|
||||||
hysteria["disable_mtu_discovery"], _ = strconv.ParseBool(query.Get("disable_mtu_discovery"))
|
|
||||||
hysteria["skip-cert-verify"], _ = strconv.ParseBool(query.Get("insecure"))
|
hysteria["skip-cert-verify"], _ = strconv.ParseBool(query.Get("insecure"))
|
||||||
|
|
||||||
proxies = append(proxies, hysteria)
|
proxies = append(proxies, hysteria)
|
||||||
|
|
Loading…
Reference in a new issue