From 751160940b7cf0db39b52450628a291638a8291a Mon Sep 17 00:00:00 2001 From: V2Ray Date: Thu, 17 Sep 2015 17:50:48 +0200 Subject: [PATCH] fix test break --- net/address.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/net/address.go b/net/address.go index be605ba7f..a5518c9dc 100644 --- a/net/address.go +++ b/net/address.go @@ -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, }