mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-21 07:07:08 +00:00
Remove VMess UDP
This commit is contained in:
1 parent
820da78f92
commit
cd42e5551c
6 files changed
+73
-223
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user