re-enable vmess test

This commit is contained in:
V2Ray committed 2015-09-16 21:13:13 +02:00
1 parent 8f93612dec
commit 228e1eeabe
11 files changed
+137 -68

No files matched your search

+1 -1
View File
@@ -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)})
}
+19
View File
@@ -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
}