forked from TrueCloudLab/frostfs-node
[#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:
parent
f930993e3a
commit
e158497560
8 changed files with 57 additions and 21 deletions
|
@ -24,7 +24,7 @@ func TestAddress_NetAddr(t *testing.T) {
|
|||
addr, err := AddressFromString(ma.String())
|
||||
require.NoError(t, err)
|
||||
|
||||
netAddr, err := addr.NetAddr()
|
||||
netAddr, err := addr.IPAddrString()
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, ip+":"+port, netAddr)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue