delay check of remote address

This commit is contained in:
Darien Raymond committed 2016-12-13 09:17:39 +01:00
1 parent 8ced9aeec8
commit 76776ddf99
2 files changed
+9 -1

No files matched your search

+4
View File
@@ -152,6 +152,10 @@ func (v *ServerSession) DecodeRequestHeader(reader io.Reader) (*protocol.Request
return nil, errors.New("VMess|Server: Invalid auth.")
}
if request.Address == nil {
return nil, errors.New("VMess|Server: Invalid remote address.")
}
return request, nil
}