| 123456789101112131415161718192021222324252627 | package jsonimport (	"encoding/json"	v2net "github.com/v2ray/v2ray-core/common/net"	v2netjson "github.com/v2ray/v2ray-core/common/net/json"	proxyconfig "github.com/v2ray/v2ray-core/proxy/common/config")type InboundDetourConfig struct {	ProtocolValue  string               `json:"protocol"`	PortRangeValue *v2netjson.PortRange `json:"port"`	SettingsValue  json.RawMessage      `json:"settings"`}func (this *InboundDetourConfig) Protocol() string {	return this.ProtocolValue}func (this *InboundDetourConfig) PortRange() v2net.PortRange {	return this.PortRangeValue}func (this *InboundDetourConfig) Settings() interface{} {	return loadConnectionConfig(this.SettingsValue, this.ProtocolValue, proxyconfig.TypeInbound)}
 |