mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-11-17 22:13:08 -08:00
move fundamental interfaces from vmess to common
This commit is contained in:
1 parent
e8b0505c01
commit
2147ba5ab3
19 files changed
+67
-63
No files matched your search
@@ -5,8 +5,8 @@ package inbound
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
proto "github.com/v2ray/v2ray-core/common/protocol"
|
||||
"github.com/v2ray/v2ray-core/proxy/internal/config"
|
||||
"github.com/v2ray/v2ray-core/proxy/vmess"
|
||||
)
|
||||
|
||||
func (this *DetourConfig) UnmarshalJSON(data []byte) error {
|
||||
@@ -35,7 +35,7 @@ func (this *FeaturesConfig) UnmarshalJSON(data []byte) error {
|
||||
|
||||
func (this *Config) UnmarshalJSON(data []byte) error {
|
||||
type JsonConfig struct {
|
||||
Users []*vmess.User `json:"clients"`
|
||||
Users []*proto.User `json:"clients"`
|
||||
Features *FeaturesConfig `json:"features"`
|
||||
}
|
||||
jsonConfig := new(JsonConfig)
|
||||
|
||||
Reference in new issue
Block a user