fix: support VLESS xhttp and normalize IPv6 addresses

This commit is contained in:
wonfen
2026-07-17 23:51:29 +08:00
parent 950e8195fb
commit b7978705af
7 changed files with 42 additions and 7 deletions
+9 -1
View File
@@ -353,6 +353,12 @@ interface GrpcOptions {
'grpc-service-name'?: string
}
interface XHttpOptions {
path?: string
host?: string
mode?: string
}
interface RealityOptions {
'public-key'?: string
'short-id'?: string
@@ -367,7 +373,7 @@ type ClientFingerprint =
| '360'
| 'qq'
| 'random'
type NetworkType = 'ws' | 'http' | 'h2' | 'grpc' | 'tcp'
type NetworkType = 'ws' | 'http' | 'h2' | 'grpc' | 'tcp' | 'xhttp'
type CipherType =
| 'none'
| 'auto'
@@ -599,6 +605,7 @@ interface IProxyVlessConfig extends IProxyBaseConfig {
'h2-opts'?: H2Options
'grpc-opts'?: GrpcOptions
'ws-opts'?: WsOptions
'xhttp-opts'?: XHttpOptions
'ws-path'?: string
'ws-headers'?: {
[key: string]: string
@@ -608,6 +615,7 @@ interface IProxyVlessConfig extends IProxyBaseConfig {
servername?: string
'client-fingerprint'?: ClientFingerprint
smux?: boolean
encryption?: string
}
// vmess
interface IProxyVmessConfig extends IProxyBaseConfig {