mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-30 23:37:44 +00:00
support using specific address
This commit is contained in:
1 parent
6c31ff91e6
commit
a4d76dc394
48 files changed
+412
-301
No files matched your search
@@ -23,8 +23,8 @@ func TestClientSampleConfig(t *testing.T) {
|
||||
pointConfig, err := LoadConfig(filepath.Join(baseDir, "vpoint_socks_vmess.json"))
|
||||
assert.Error(err).IsNil()
|
||||
|
||||
assert.Port(pointConfig.Port).IsValid()
|
||||
assert.Pointer(pointConfig.InboundConfig).IsNotNil()
|
||||
assert.Port(pointConfig.InboundConfig.Port).IsValid()
|
||||
assert.Pointer(pointConfig.OutboundConfig).IsNotNil()
|
||||
|
||||
assert.String(pointConfig.InboundConfig.Protocol).Equals("socks")
|
||||
@@ -43,8 +43,8 @@ func TestServerSampleConfig(t *testing.T) {
|
||||
pointConfig, err := LoadConfig(filepath.Join(baseDir, "vpoint_vmess_freedom.json"))
|
||||
assert.Error(err).IsNil()
|
||||
|
||||
assert.Port(pointConfig.Port).IsValid()
|
||||
assert.Pointer(pointConfig.InboundConfig).IsNotNil()
|
||||
assert.Port(pointConfig.InboundConfig.Port).IsValid()
|
||||
assert.Pointer(pointConfig.OutboundConfig).IsNotNil()
|
||||
|
||||
assert.String(pointConfig.InboundConfig.Protocol).Equals("vmess")
|
||||
|
||||
Reference in new issue
Block a user