1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-19 10:56:06 -05:00
v2fly/proxy/dokodemo/config/json/json.go

20 lines
489 B
Go
Raw Normal View History

2015-10-30 10:56:46 -04:00
package json
import (
v2netjson "github.com/v2ray/v2ray-core/common/net/json"
2015-10-30 17:42:24 -04:00
"github.com/v2ray/v2ray-core/proxy/common/config/json"
2015-10-30 10:56:46 -04:00
)
type DokodemoConfig struct {
Host string `json:"address"`
Port int `json:"port"`
Network *v2netjson.NetworkList `json:"network"`
Timeout int `json:"timeout"`
}
func init() {
2015-10-30 17:42:24 -04:00
json.RegisterInboundConnectionConfig("dokodemo-door", func() interface{} {
2015-10-30 10:56:46 -04:00
return new(DokodemoConfig)
})
}