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)
|
|
|
|
})
|
|
|
|
}
|