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/network.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/network.h') diff --git a/src/network.h b/src/network.h index 4d232b3..a6ba3cd 100644 --- a/src/network.h +++ b/src/network.h @@ -43,7 +43,7 @@ struct Server::Peer Peer & operator=(const Peer &) = delete; Priv & server; - const sockaddr_in addr; + const sockaddr_in6 addr; variant, @@ -151,8 +151,8 @@ struct Server::Priv void doListen(); void doAnnounce(); - bool isSelfAddress(const sockaddr_in & paddr); - Peer & getPeer(const sockaddr_in & paddr); + bool isSelfAddress(const sockaddr_in6 & paddr); + Peer & getPeer(const sockaddr_in6 & paddr); void handlePacket(Peer &, const TransportHeader &, ReplyBuilder &); void handleLocalHeadChange(const Head &); -- cgit v1.2.3