mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-06 01:05:35 -05:00
Remove redunent code
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user