From 1edd0e660e99bdcb4004e5cef01f5e1d7e80a46d Mon Sep 17 00:00:00 2001 From: V2Ray Date: Mon, 2 Nov 2015 23:55:10 +0100 Subject: [PATCH] Remove redunent code --- proxy/socks/protocol/socks4_test.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/proxy/socks/protocol/socks4_test.go b/proxy/socks/protocol/socks4_test.go index 41119d556..c61e2ba04 100644 --- a/proxy/socks/protocol/socks4_test.go +++ b/proxy/socks/protocol/socks4_test.go @@ -28,11 +28,7 @@ func TestSocks4AuthenticationRequestRead(t *testing.T) { func TestSocks4AuthenticationResponseToBytes(t *testing.T) { assert := unit.Assert(t) - response := &Socks4AuthenticationResponse{ - result: byte(0x10), - port: 443, - ip: []byte{1, 2, 3, 4}, - } + response := NewSocks4AuthenticationResponse(byte(0x10), 443, []byte{1, 2, 3, 4}) buffer := alloc.NewSmallBuffer().Clear() defer buffer.Release()