0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-12 19:39:35 +03:00

Add SNI shunt support for VLESS (#141)

This commit is contained in:
eMeab
2021-01-13 23:13:51 +08:00
committed by GitHub
parent 11a851f957
commit d85162ea44
4 changed files with 77 additions and 42 deletions

View File

@ -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,