[#43] cmd/neofs-node: Support hostnames with dns, ipv4 and ipv6 addresses

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-09-24 11:27:14 +03:00
parent f930993e3a
commit e158497560
8 changed files with 57 additions and 21 deletions

View file

@ -32,7 +32,7 @@ func (r *remoteRangeWriter) WriteTo(w io.Writer) (int64, error) {
return 0, errors.Wrapf(err, "(%T) could not receive private key", r)
}
addr, err := r.node.NetAddr()
addr, err := r.node.IPAddrString()
if err != nil {
return 0, err
}