1
0
mirror of https://github.com/nitezs/sub2sing-box.git synced 2024-12-23 21:24:42 -05:00

🐛 Fix vless parser lost fingerprint

This commit is contained in:
Nite07 2024-05-06 02:07:30 +08:00
parent 6e5f6b901a
commit 3030ec5259

View File

@ -111,11 +111,11 @@ func ParseVless(proxy string) (model.Outbound, error) {
ALPN: alpn, ALPN: alpn,
ServerName: sni, ServerName: sni,
Insecure: insecureBool, Insecure: insecureBool,
}, UTLS: &model.OutboundUTLSOptions{
}
result.VLESSOptions.OutboundTLSOptionsContainer.TLS.UTLS = &model.OutboundUTLSOptions{
Enabled: enableUTLS, Enabled: enableUTLS,
Fingerprint: fp, Fingerprint: fp,
},
},
} }
} }
@ -126,12 +126,16 @@ func ParseVless(proxy string) (model.Outbound, error) {
ALPN: alpn, ALPN: alpn,
ServerName: sni, ServerName: sni,
Insecure: insecureBool, Insecure: insecureBool,
UTLS: &model.OutboundUTLSOptions{
Enabled: enableUTLS,
Fingerprint: fp,
}, },
} Reality: &model.OutboundRealityOptions{
result.VLESSOptions.OutboundTLSOptionsContainer.TLS.Reality = &model.OutboundRealityOptions{
Enabled: true, Enabled: true,
PublicKey: pbk, PublicKey: pbk,
ShortID: sid, ShortID: sid,
},
},
} }
} }