21 lines
537 B
Go
Raw Normal View History

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