From 8f93612deccf7ec3dacc949f818606d3f5716692 Mon Sep 17 00:00:00 2001 From: V2Ray Date: Wed, 16 Sep 2015 17:36:11 +0200 Subject: [PATCH] use NewAuthenticationResponse instead of struct{} --- io/socks/socks_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/io/socks/socks_test.go b/io/socks/socks_test.go index 81a265500..d9b5538e7 100644 --- a/io/socks/socks_test.go +++ b/io/socks/socks_test.go @@ -40,10 +40,7 @@ func TestAuthenticationRequestRead(t *testing.T) { func TestAuthenticationResponseWrite(t *testing.T) { assert := unit.Assert(t) - response := Socks5AuthenticationResponse{ - version: socksVersion, - authMethod: byte(0x05), - } + response := NewAuthenticationResponse(byte(0x05)) buffer := bytes.NewBuffer(make([]byte, 0, 10)) WriteAuthentication(buffer, &response)