mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-07-28 18:53:44 -04:00
re-org vmess content
This commit is contained in:
@@ -1,29 +1,29 @@
|
||||
package mocks
|
||||
|
||||
import (
|
||||
"github.com/v2ray/v2ray-core/proxy/vmess/config"
|
||||
"github.com/v2ray/v2ray-core/proxy/vmess"
|
||||
)
|
||||
|
||||
type StaticUser struct {
|
||||
id *config.ID
|
||||
id *vmess.ID
|
||||
}
|
||||
|
||||
func (this *StaticUser) ID() *config.ID {
|
||||
func (this *StaticUser) ID() *vmess.ID {
|
||||
return this.id
|
||||
}
|
||||
|
||||
func (this *StaticUser) Level() config.UserLevel {
|
||||
return config.UserLevelUntrusted
|
||||
func (this *StaticUser) Level() vmess.UserLevel {
|
||||
return vmess.UserLevelUntrusted
|
||||
}
|
||||
|
||||
type StaticUserSet struct {
|
||||
}
|
||||
|
||||
func (us *StaticUserSet) AddUser(user config.User) error {
|
||||
func (us *StaticUserSet) AddUser(user vmess.User) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (us *StaticUserSet) GetUser(userhash []byte) (config.User, int64, bool) {
|
||||
id, _ := config.NewID("703e9102-eb57-499c-8b59-faf4f371bb21")
|
||||
func (us *StaticUserSet) GetUser(userhash []byte) (vmess.User, int64, bool) {
|
||||
id, _ := vmess.NewID("703e9102-eb57-499c-8b59-faf4f371bb21")
|
||||
return &StaticUser{id: id}, 0, true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user