1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-29 21:45:21 -05:00

clean udp writer

This commit is contained in:
Darien Raymond
2017-04-21 14:51:09 +02:00
parent eda72624e2
commit 498c7dafdf
10 changed files with 48 additions and 55 deletions

View File

@@ -19,7 +19,7 @@ func TestUDPEncoding(t *testing.T) {
Address: net.IPAddress([]byte{1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6}),
Port: 1024,
}
writer := NewUDPWriter(request, b)
writer := buf.NewSequentialWriter(NewUDPWriter(request, b))
content := []byte{'a'}
payload := buf.New()