mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-25 19:45:38 -05:00
make sure dc id is valid.
This commit is contained in:
@@ -22,7 +22,7 @@ type Authentication struct {
|
||||
}
|
||||
|
||||
func (a *Authentication) DataCenterID() uint16 {
|
||||
return (uint16(a.Header[61]) << 8) | uint16(a.Header[60])
|
||||
return ((uint16(a.Header[61]) << 8) | uint16(a.Header[60])) % uint16(len(dcList))
|
||||
}
|
||||
|
||||
func (a *Authentication) ApplySecret(b []byte) {
|
||||
|
||||
Reference in New Issue
Block a user