Dokodemo proxy

This commit is contained in:
V2Ray committed 2015-10-30 15:56:46 +01:00
1 parent f93b29993b
commit c56e17fff9
7 files changed
+197 -3

No files matched your search

+23
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)
})
}