1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-04 08:15:21 -05:00

delay check of remote address

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

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
}