mirror of
https://github.com/bestnite/sub2sing-box.git
synced 2025-06-16 18:13:19 +08:00
🐛 Fix vless parser null pointer error
This commit is contained in:
@ -120,6 +120,14 @@ func ParseVless(proxy string) (model.Outbound, error) {
|
||||
}
|
||||
|
||||
if security == "reality" {
|
||||
result.VLESSOptions.OutboundTLSOptionsContainer = model.OutboundTLSOptionsContainer{
|
||||
TLS: &model.OutboundTLSOptions{
|
||||
Enabled: true,
|
||||
ALPN: alpn,
|
||||
ServerName: sni,
|
||||
Insecure: insecureBool,
|
||||
},
|
||||
}
|
||||
result.VLESSOptions.OutboundTLSOptionsContainer.TLS.Reality = &model.OutboundRealityOptions{
|
||||
Enabled: true,
|
||||
PublicKey: pbk,
|
||||
|
Reference in New Issue
Block a user