1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-28 04:55:37 -05:00

rename server spec user

This commit is contained in:
Darien Raymond
2016-09-25 22:57:27 +02:00
parent c5f09c64a2
commit 922e761bef
5 changed files with 21 additions and 22 deletions

View File

@@ -62,7 +62,7 @@ func NewServerSpec(newAccount NewAccountFactory, dest v2net.Destination, valid V
func NewServerSpecFromPB(newAccount NewAccountFactory, spec ServerSpecPB) *ServerSpec {
dest := v2net.TCPDestination(spec.Address.AsAddress(), v2net.Port(spec.Port))
return NewServerSpec(newAccount, dest, AlwaysValid(), spec.Users...)
return NewServerSpec(newAccount, dest, AlwaysValid(), spec.User...)
}
func (this *ServerSpec) Destination() v2net.Destination {