mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-07 18:57:44 -05:00
20 lines
489 B
Go
20 lines
489 B
Go
package json
|
|
|
|
import (
|
|
v2netjson "github.com/v2ray/v2ray-core/common/net/json"
|
|
"github.com/v2ray/v2ray-core/proxy/common/config/json"
|
|
)
|
|
|
|
type DokodemoConfig struct {
|
|
Host string `json:"address"`
|
|
Port int `json:"port"`
|
|
Network *v2netjson.NetworkList `json:"network"`
|
|
Timeout int `json:"timeout"`
|
|
}
|
|
|
|
func init() {
|
|
json.RegisterInboundConnectionConfig("dokodemo-door", func() interface{} {
|
|
return new(DokodemoConfig)
|
|
})
|
|
}
|