mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-10-16 14:04:03 -04:00
fix a bug in cmdkey generation
This commit is contained in:
@@ -25,3 +25,12 @@ func (this BytesLiteral) Int64Value() int64 {
|
||||
func (this BytesLiteral) String() string {
|
||||
return string(this.Value())
|
||||
}
|
||||
|
||||
func (this BytesLiteral) AllZero() bool {
|
||||
for _, b := range this {
|
||||
if b != 0 {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
Reference in New Issue
Block a user