mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-10-02 15:14:04 -04:00
Dokodemo proxy
This commit is contained in:
23
proxy/dokodemo/config/json/json.go
Normal file
23
proxy/dokodemo/config/json/json.go
Normal file
@@ -0,0 +1,23 @@
|
||||
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)
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user