mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -05:00
use NewAuthenticationResponse instead of struct{}
This commit is contained in:
parent
d18d3db4b5
commit
8f93612dec
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user