json.go 561 B

12345678910111213141516171819202122
  1. package json
  2. import (
  3. v2net "github.com/v2ray/v2ray-core/common/net"
  4. v2netjson "github.com/v2ray/v2ray-core/common/net/json"
  5. "github.com/v2ray/v2ray-core/proxy/common/config/json"
  6. )
  7. type DokodemoConfig struct {
  8. Host string `json:"address"`
  9. Port int `json:"port"`
  10. Network *v2netjson.NetworkList `json:"network"`
  11. Timeout int `json:"timeout"`
  12. address v2net.Address
  13. }
  14. func init() {
  15. json.RegisterInboundConnectionConfig("dokodemo-door", func() interface{} {
  16. return new(DokodemoConfig)
  17. })
  18. }