mirror of
https://github.com/nitezs/sub2clash.git
synced 2024-12-24 13:14:42 -05:00
fix vless reality parsing
This commit is contained in:
parent
50877b1691
commit
46e2e3af61
@ -16,8 +16,8 @@ type GrpcOptions struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type RealityOptions struct {
|
type RealityOptions struct {
|
||||||
PublicKey string `proxy:"public-key"`
|
PublicKey string `yaml:"public-key"`
|
||||||
ShortID string `proxy:"short-id"`
|
ShortID string `yaml:"short-id,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type WSOptions struct {
|
type WSOptions struct {
|
||||||
|
@ -43,9 +43,9 @@ func ParseVless(proxy string) (model.Proxy, error) {
|
|||||||
UDP: true,
|
UDP: true,
|
||||||
Sni: params.Get("sni"),
|
Sni: params.Get("sni"),
|
||||||
Network: params.Get("type"),
|
Network: params.Get("type"),
|
||||||
TLS: params.Get("security") == "tls",
|
TLS: params.Get("security") == "reality",
|
||||||
Flow: params.Get("flow"),
|
Flow: params.Get("flow"),
|
||||||
Fingerprint: params.Get("fp"),
|
ClientFingerprint: params.Get("fp"),
|
||||||
Servername: params.Get("sni"),
|
Servername: params.Get("sni"),
|
||||||
RealityOpts: model.RealityOptions{
|
RealityOpts: model.RealityOptions{
|
||||||
PublicKey: params.Get("pbk"),
|
PublicKey: params.Get("pbk"),
|
||||||
|
Loading…
Reference in New Issue
Block a user