chore: Unify config field name style
This commit is contained in:
parent
6ce3805719
commit
35506e179a
1 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ type VmessOption struct {
|
|||
WSOpts WSOptions `proxy:"ws-opts,omitempty"`
|
||||
PacketAddr bool `proxy:"packet-addr,omitempty"`
|
||||
XUDP bool `proxy:"xudp,omitempty"`
|
||||
PacketEncoding string `proxy:"packet_encoding,omitempty"`
|
||||
PacketEncoding string `proxy:"packet-encoding,omitempty"`
|
||||
AuthenticatedLength bool `proxy:"authenticated-length,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -320,7 +320,7 @@ func NewVmess(option VmessOption) (*Vmess, error) {
|
|||
}
|
||||
|
||||
switch option.PacketEncoding {
|
||||
case "packetaddr":
|
||||
case "packetaddr", "packet":
|
||||
option.PacketAddr = true
|
||||
case "xudp":
|
||||
option.XUDP = true
|
||||
|
|
Loading…
Reference in a new issue