Files
v2ray_simple/proxy/vmess/vmess_test.go
2022-12-04 22:35:26 +08:00

21 lines
480 B
Go

package vmess_test
import (
"testing"
"github.com/e1732a364fed/v2ray_simple/netLayer"
"github.com/e1732a364fed/v2ray_simple/proxy"
)
func TestTCP(t *testing.T) {
proxy.TestTCP("vmess", "", 0, netLayer.RandPortStr_safe(true, false), "", t)
}
func TestTCP_none(t *testing.T) {
proxy.TestTCP("vmess", "", 0, netLayer.RandPortStr_safe(true, false), "security=none", t)
}
func TestUDP(t *testing.T) {
proxy.TestUDP("vmess", 0, netLayer.RandPortStr_safe(true, true), 0, t)
}