mirror of
https://github.com/e1732a364fed/v2ray_simple.git
synced 2025-12-24 13:27:56 +08:00
21 lines
480 B
Go
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)
|
|
}
|