mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-08-12 05:17:13 +03:00
Fix xhttp link parsing
This commit is contained in:
@@ -70,9 +70,10 @@ func parseVLESSLink(link string) (option.Outbound, error) {
|
||||
case "xhttp":
|
||||
Transport.Type = C.V2RayTransportTypeXHTTP
|
||||
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 != "" {
|
||||
Transport.XHTTPOptions.Host = host
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user