mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-14 14:47:12 +00:00
Add network type to destination to be ready for UDP connection
This commit is contained in:
1 parent
5d5102de4c
commit
b319704282
14 files changed
+94
-34
No files matched your search
@@ -61,7 +61,7 @@ func TestSocksTcpConnect(t *testing.T) {
|
||||
|
||||
assert.Bytes([]byte(data2Send)).Equals(och.Data2Send.Bytes())
|
||||
assert.Bytes(dataReturned).Equals(och.Data2Return)
|
||||
assert.String(targetServer).Equals(och.Destination.String())
|
||||
assert.String(targetServer).Equals(och.Destination.Address().String())
|
||||
}
|
||||
|
||||
func TestSocksTcpConnectWithUserPass(t *testing.T) {
|
||||
@@ -112,5 +112,5 @@ func TestSocksTcpConnectWithUserPass(t *testing.T) {
|
||||
|
||||
assert.Bytes([]byte(data2Send)).Equals(och.Data2Send.Bytes())
|
||||
assert.Bytes(dataReturned).Equals(och.Data2Return)
|
||||
assert.String(targetServer).Equals(och.Destination.String())
|
||||
assert.String(targetServer).Equals(och.Destination.Address().String())
|
||||
}
|
||||
Reference in new issue
Block a user