AddressFromIP constructs the address from the IP address.
(ip net.IP)
| 35 | |
| 36 | // AddressFromIP constructs the address from the IP address. |
| 37 | func AddressFromIP(ip net.IP) Address { |
| 38 | var addr Address |
| 39 | copy(addr[:], ip) |
| 40 | return addr |
| 41 | } |
no outgoing calls