diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2023-05-07 11:23:31 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2023-05-07 17:47:11 +0200 |
commit | 3fc29ed18ea46e83e2ba2d4b39e52239771f427c (patch) | |
tree | 1aa1fc5e6806b8c7cc51d6fa536978a427aa3d85 /src/main.cpp | |
parent | 0c790e6850f0575f4d5ba8182c580182869ad57d (diff) |
Network: use IPv6 socket internally
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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<string> &) 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()); } |