chore: the uuid-map is transferred to the protocol

This commit is contained in:
Skyxim
2022-05-06 13:28:09 +08:00
parent a08e39faec
commit a95d439852
7 changed files with 111 additions and 33 deletions

View File

@@ -274,7 +274,7 @@ func (v *Vmess) SupportUOT() bool {
func NewVmess(option VmessOption) (*Vmess, error) {
security := strings.ToLower(option.Cipher)
client, err := vmess.NewClient(vmess.Config{
UUID: uuidMap(option.UUID),
UUID: option.UUID,
AlterID: uint16(option.AlterID),
Security: security,
HostName: option.Server,