mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-30 09:18:34 +00:00
Add SNI shunt support for VLESS (#141)
This commit is contained in:
parent
11a851f957
commit
d85162ea44
4 changed files with 77 additions and 42 deletions
|
@ -18,6 +18,7 @@ import (
|
|||
)
|
||||
|
||||
type VLessInboundFallback struct {
|
||||
Name string `json:"name"`
|
||||
Alpn string `json:"alpn"`
|
||||
Path string `json:"path"`
|
||||
Type string `json:"type"`
|
||||
|
@ -85,6 +86,7 @@ func (c *VLessInboundConfig) Build() (proto.Message, error) {
|
|||
_ = json.Unmarshal(fb.Dest, &s)
|
||||
}
|
||||
config.Fallbacks = append(config.Fallbacks, &inbound.Fallback{
|
||||
Name: fb.Name,
|
||||
Alpn: fb.Alpn,
|
||||
Path: fb.Path,
|
||||
Type: fb.Type,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue