|
|
|
@ -568,7 +568,7 @@ func (c *REALITYConfig) Build() (proto.Message, error) {
|
|
|
|
|
return nil, errors.New(`invalid "minClientVer": `, c.MinClientVer)
|
|
|
|
|
}
|
|
|
|
|
if u, err = strconv.ParseUint(s, 10, 8); err != nil {
|
|
|
|
|
return nil, errors.New(`"minClientVer[`, i, `]" should be lesser than 256`)
|
|
|
|
|
return nil, errors.New(`"minClientVer[`, i, `]" should be less than 256`)
|
|
|
|
|
} else {
|
|
|
|
|
config.MinClientVer[i] = byte(u)
|
|
|
|
|
}
|
|
|
|
@ -582,7 +582,7 @@ func (c *REALITYConfig) Build() (proto.Message, error) {
|
|
|
|
|
return nil, errors.New(`invalid "maxClientVer": `, c.MaxClientVer)
|
|
|
|
|
}
|
|
|
|
|
if u, err = strconv.ParseUint(s, 10, 8); err != nil {
|
|
|
|
|
return nil, errors.New(`"maxClientVer[`, i, `]" should be lesser than 256`)
|
|
|
|
|
return nil, errors.New(`"maxClientVer[`, i, `]" should be less than 256`)
|
|
|
|
|
} else {
|
|
|
|
|
config.MaxClientVer[i] = byte(u)
|
|
|
|
|
}
|
|
|
|
|