mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-18 18:36:11 -05:00
21 lines
537 B
Go
21 lines
537 B
Go
package json
|
|
|
|
import (
|
|
v2net "github.com/v2ray/v2ray-core/common/net"
|
|
v2netjson "github.com/v2ray/v2ray-core/common/net/json"
|
|
"github.com/v2ray/v2ray-core/proxy/common/config/json"
|
|
)
|
|
|
|
type DokodemoConfig struct {
|
|
Host string `json:"address"`
|
|
Port v2net.Port `json:"port"`
|
|
Network *v2netjson.NetworkList `json:"network"`
|
|
Timeout int `json:"timeout"`
|
|
}
|
|
|
|
func init() {
|
|
json.RegisterInboundConnectionConfig("dokodemo-door", func() interface{} {
|
|
return new(DokodemoConfig)
|
|
})
|
|
}
|