| 12345678910111213141516171819202122232425 | package jsonimport (	"github.com/v2ray/v2ray-core/proxy/common/config/json"	"github.com/v2ray/v2ray-core/proxy/vmess"	vmessjson "github.com/v2ray/v2ray-core/proxy/vmess/json")type Inbound struct {	AllowedClients []*vmessjson.ConfigUser `json:"clients"`}func (c *Inbound) AllowedUsers() []vmess.User {	users := make([]vmess.User, 0, len(c.AllowedClients))	for _, rawUser := range c.AllowedClients {		users = append(users, rawUser)	}	return users}func init() {	json.RegisterInboundConnectionConfig("vmess", func() interface{} {		return new(Inbound)	})}
 |