1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-27 06:16:09 -04:00

fix test break

This commit is contained in:
V2Ray 2015-09-17 17:50:48 +02:00
parent 8e8dbbcfd0
commit 751160940b

View File

@ -18,12 +18,10 @@ type Address struct {
}
func IPAddress(ip []byte, port uint16) Address {
ipCopy := make([]byte, 4)
copy(ipCopy, ip)
// TODO: check IP length
return Address{
Type: AddrTypeIP,
IP: net.IP(ipCopy),
IP: net.IP(ip),
Domain: "",
Port: port,
}