1
0
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:
Darien Raymond
2016-01-20 16:45:50 +00:00
parent baaef1dad5
commit 23b6b987ca
3 changed files with 28 additions and 1 deletions

View File

@@ -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
}