Fix: vmess UDP option should be effect

This commit is contained in:
Dreamacro 2020-08-30 22:49:55 +08:00
parent ad18064e6b
commit 687c2a21cf

View File

@ -158,7 +158,7 @@ func NewVmess(option VmessOption) (*Vmess, error) {
name: option.Name, name: option.Name,
addr: net.JoinHostPort(option.Server, strconv.Itoa(option.Port)), addr: net.JoinHostPort(option.Server, strconv.Itoa(option.Port)),
tp: C.Vmess, tp: C.Vmess,
udp: true, udp: option.UDP,
}, },
client: client, client: client,
option: &option, option: &option,