mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-08-12 21:37:14 +03:00
Fix xhttp link parsing
This commit is contained in:
@@ -70,9 +70,10 @@ func parseVLESSLink(link string) (option.Outbound, error) {
|
|||||||
case "xhttp":
|
case "xhttp":
|
||||||
Transport.Type = C.V2RayTransportTypeXHTTP
|
Transport.Type = C.V2RayTransportTypeXHTTP
|
||||||
if alpn, exists := proxy["alpn"]; exists && alpn != "" {
|
if alpn, exists := proxy["alpn"]; exists && alpn != "" {
|
||||||
TLSOptions.ALPN = []string{alpn}
|
TLSOptions.ALPN = strings.Split(alpn, ",")
|
||||||
|
} else {
|
||||||
|
TLSOptions.ALPN = []string{"h2", "http/1.1"}
|
||||||
}
|
}
|
||||||
TLSOptions.ALPN = []string{"h2", "http/1.1"}
|
|
||||||
if host, exists := proxy["host"]; exists && host != "" {
|
if host, exists := proxy["host"]; exists && host != "" {
|
||||||
Transport.XHTTPOptions.Host = host
|
Transport.XHTTPOptions.Host = host
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user