mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 09:36:34 -05:00
fix test break
This commit is contained in:
parent
8e8dbbcfd0
commit
751160940b
@ -18,12 +18,10 @@ type Address struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func IPAddress(ip []byte, port uint16) Address {
|
func IPAddress(ip []byte, port uint16) Address {
|
||||||
ipCopy := make([]byte, 4)
|
|
||||||
copy(ipCopy, ip)
|
|
||||||
// TODO: check IP length
|
// TODO: check IP length
|
||||||
return Address{
|
return Address{
|
||||||
Type: AddrTypeIP,
|
Type: AddrTypeIP,
|
||||||
IP: net.IP(ipCopy),
|
IP: net.IP(ip),
|
||||||
Domain: "",
|
Domain: "",
|
||||||
Port: port,
|
Port: port,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user