mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-08 19:22:44 +08:00
fix: support VLESS xhttp and normalize IPv6 addresses
This commit is contained in:
Vendored
+9
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user