1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-07-15 17:54:37 -04:00
v2fly/proxy/dokodemo/config/json/json.go
2015-10-30 22:42:24 +01:00

23 lines
561 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 int `json:"port"`
Network *v2netjson.NetworkList `json:"network"`
Timeout int `json:"timeout"`
address v2net.Address
}
func init() {
json.RegisterInboundConnectionConfig("dokodemo-door", func() interface{} {
return new(DokodemoConfig)
})
}