mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-19 07:01:09 +00:00
re-enable vmess test
This commit is contained in:
1 parent
8f93612dec
commit
228e1eeabe
11 files changed
+137
-68
No files matched your search
@@ -43,7 +43,7 @@ func TestAuthenticationResponseWrite(t *testing.T) {
|
||||
response := NewAuthenticationResponse(byte(0x05))
|
||||
|
||||
buffer := bytes.NewBuffer(make([]byte, 0, 10))
|
||||
WriteAuthentication(buffer, &response)
|
||||
WriteAuthentication(buffer, response)
|
||||
assert.Bytes(buffer.Bytes()).Equals([]byte{socksVersion, byte(0x05)})
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
package socks
|
||||
|
||||
import (
|
||||
"io"
|
||||
|
||||
v2net "github.com/v2ray/v2ray-core/net"
|
||||
)
|
||||
|
||||
type Socks5UDPRequest struct {
|
||||
fragment byte
|
||||
address v2net.Address
|
||||
data []byte
|
||||
}
|
||||
|
||||
func ReadUDPRequest(reader io.Reader) (request Socks5UDPRequest, err error) {
|
||||
//buf := make([]byte, 4 * 1024) // Regular UDP packet size is 1500 bytes.
|
||||
|
||||
return
|
||||
}
|
||||
Reference in new issue
Block a user