From 3fc29ed18ea46e83e2ba2d4b39e52239771f427c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sun, 7 May 2023 11:23:31 +0200 Subject: Network: use IPv6 socket internally --- src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index d0015c2..63b78dd 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -303,10 +303,9 @@ void startServer(const vector &) if (peer) { if (i >= testPeers.size()) { testPeers.push_back(TestPeer { .peer = *peer, .id = i + 1 }); - const auto & paddr = peer->address(); ostringstream ss; - ss << prefix << " addr " << inet_ntoa(paddr.sin_addr) << " " << ntohs(paddr.sin_port); + ss << prefix << " addr " << peer->addressStr() << " " << peer->port(); printLine(ss.str()); } -- cgit v1.2.3