feat: add ws-path to vmess listener

This commit is contained in:
wwqgtxx
2023-10-07 16:45:15 +08:00
parent 5ff4473083
commit 791ecfbb32
5 changed files with 36 additions and 9 deletions

View File

@ -9,7 +9,8 @@ import (
type VmessOption struct {
BaseOption
Users []VmessUser `inbound:"users"`
Users []VmessUser `inbound:"users"`
WsPath string `inbound:"ws-path,omitempty"`
}
type VmessUser struct {
@ -49,6 +50,7 @@ func NewVmess(options *VmessOption) (*Vmess, error) {
Enable: true,
Listen: base.RawAddress(),
Users: users,
WsPath: options.WsPath,
},
}, nil
}