mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-04-20 04:29:32 -04:00
Fix according to go vet results
This commit is contained in:
@@ -58,7 +58,7 @@ func NewServerSpec(dest net.Destination, valid ValidationStrategy, users ...*Mem
|
||||
}
|
||||
}
|
||||
|
||||
func NewServerSpecFromPB(spec ServerEndpoint) (*ServerSpec, error) {
|
||||
func NewServerSpecFromPB(spec *ServerEndpoint) (*ServerSpec, error) {
|
||||
dest := net.TCPDestination(spec.Address.AsAddress(), net.Port(spec.Port))
|
||||
mUsers := make([]*MemoryUser, len(spec.User))
|
||||
for idx, u := range spec.User {
|
||||
|
||||
Reference in New Issue
Block a user