mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-13 22:45:13 +00:00
format code
This commit is contained in:
1 parent
2566fc3d14
commit
c467da4950
2 files changed
+6
-6
No files matched your search
@@ -1,7 +1,7 @@
|
|||||||
package core
|
package core
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"crypto/md5"
|
"crypto/md5"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"fmt"
|
"fmt"
|
||||||
)
|
)
|
||||||
@@ -10,10 +10,10 @@ import (
|
|||||||
type VID [16]byte
|
type VID [16]byte
|
||||||
|
|
||||||
func (v VID) Hash(suffix []byte) []byte {
|
func (v VID) Hash(suffix []byte) []byte {
|
||||||
md5 := md5.New()
|
md5 := md5.New()
|
||||||
md5.Write(v[:])
|
md5.Write(v[:])
|
||||||
md5.Write(suffix)
|
md5.Write(suffix)
|
||||||
return md5.Sum(nil)
|
return md5.Sum(nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
var byteGroups = []int{8, 4, 4, 4, 12}
|
var byteGroups = []int{8, 4, 4, 4, 12}
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
package core
|
package core
|
||||||
|
|
||||||
type VUserSet struct {
|
type VUserSet struct {
|
||||||
validUserIds [][]byte
|
validUserIds [][]byte
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user