1
0
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:
V2Ray
2015-10-30 15:56:46 +01:00
parent f93b29993b
commit c56e17fff9
7 changed files with 197 additions and 3 deletions

View 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)
})
}