24 lines
593 B
Go
Raw Normal View History

2015-10-30 15:56:46 +01:00
package json
import (
v2net "github.com/v2ray/v2ray-core/common/net"
v2netjson "github.com/v2ray/v2ray-core/common/net/json"
"github.com/v2ray/v2ray-core/config"
"github.com/v2ray/v2ray-core/config/json"
)
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() {
json.RegisterConfigType("dokodemo-door", config.TypeInbound, func() interface{} {
return new(DokodemoConfig)
})
}