Remove VMess UDP

This commit is contained in:
V2Ray committed 2015-10-02 21:55:37 +02:00
1 parent 820da78f92
commit cd42e5551c
6 files changed
+73 -223

No files matched your search

+5
View File
@@ -3,6 +3,7 @@ package vmess
import (
"encoding/json"
"net"
"strings"
"github.com/v2ray/v2ray-core/common/log"
v2net "github.com/v2ray/v2ray-core/common/net"
@@ -40,6 +41,10 @@ type VNextConfig struct {
Network string `json:"network"`
}
func (config VNextConfig) HasNetwork(network string) bool {
return strings.Contains(config.Network, network)
}
func (config VNextConfig) ToVNextServer() VNextServer {
users := make([]user.User, 0, len(config.Users))
for _, user := range config.Users {