1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-07 18:57:44 -05:00
v2fly/proxy/dokodemo/config/json/json.go
2015-11-01 22:17:49 +01:00

20 lines
489 B
Go

package json
import (
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"`
}
func init() {
json.RegisterInboundConnectionConfig("dokodemo-door", func() interface{} {
return new(DokodemoConfig)
})
}