mirror of
https://github.com/bestnite/sub2sing-box.git
synced 2025-10-25 08:41:01 +00:00
🐛 Fix null pointer exception when parse ws headers in vless
🔧 Update templates
This commit is contained in:
@@ -130,7 +130,12 @@ func ParseVless(proxy string) (model.Outbound, error) {
|
||||
Path: path,
|
||||
},
|
||||
}
|
||||
result.VLESSOptions.Transport.WebsocketOptions.Headers["Host"] = host
|
||||
if host != "" {
|
||||
if result.VLESSOptions.Transport.WebsocketOptions.Headers == nil {
|
||||
result.VLESSOptions.Transport.WebsocketOptions.Headers = make(map[string]string)
|
||||
}
|
||||
result.VLESSOptions.Transport.WebsocketOptions.Headers["Host"] = host
|
||||
}
|
||||
}
|
||||
|
||||
if params.Get("type") == "quic" {
|
||||
|
||||
Reference in New Issue
Block a user