feat: support uuid with custom string

This commit is contained in:
Meta
2022-04-27 18:02:29 +08:00
parent 183973e823
commit 73aa8c7be7
3 changed files with 30 additions and 2 deletions

View File

@ -266,7 +266,7 @@ func (v *Vmess) ListenPacketContext(ctx context.Context, metadata *C.Metadata, o
func NewVmess(option VmessOption) (*Vmess, error) {
security := strings.ToLower(option.Cipher)
client, err := vmess.NewClient(vmess.Config{
UUID: option.UUID,
UUID: uuidMap(option.UUID),
AlterID: uint16(option.AlterID),
Security: security,
HostName: option.Server,