1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-06 17:36:40 -05:00
v2fly/proxy/dokodemo/config/json/json.go

21 lines
537 B
Go
Raw Normal View History

2015-10-30 10:56:46 -04:00
package json
import (
2015-12-02 15:44:01 -05:00
v2net "github.com/v2ray/v2ray-core/common/net"
2015-10-30 10:56:46 -04:00
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"`
2015-12-02 15:44:01 -05:00
Port v2net.Port `json:"port"`
2015-10-30 10:56:46 -04:00
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)
})
}