1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-08-22 12:24:30 -04:00
v2fly/proxy/dokodemo/config/json/json.go

23 lines
561 B
Go
Raw Normal View History

2015-10-30 10:56:46 -04:00
package json
import (
v2net "github.com/v2ray/v2ray-core/common/net"
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"`
address v2net.Address
}
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)
})
}