mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-03 00:22:05 +00:00
fix freedom test
This commit is contained in:
1 parent
b44268d409
commit
77f5c15dbc
1 file changed
+1
-1
@@ -56,7 +56,7 @@ func TestUnreachableDestination(t *testing.T) {
|
||||
traffic := ray.NewRay()
|
||||
data2Send := "Data to be sent to remote"
|
||||
payload := alloc.NewSmallBuffer().Clear().Append([]byte(data2Send))
|
||||
packet := v2net.NewPacket(v2net.TCPDestination(v2net.IPAddress([]byte{127, 0, 0, 2}), 80), payload, false)
|
||||
packet := v2net.NewPacket(v2net.TCPDestination(v2net.IPAddress([]byte{127, 0, 0, 1}), 128), payload, false)
|
||||
|
||||
err := freedom.Dispatch(packet, traffic)
|
||||
assert.Error(err).IsNotNil()
|
||||
|
||||
Reference in new issue
Block a user