mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-12-05 19:38:32 +00:00
chore: Unify config field name style
This commit is contained in:
1 parent
6ce3805719
commit
35506e179a
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user