From 0e283f9badcf14b4c3e3af54d6f082e930d8b059 Mon Sep 17 00:00:00 2001 From: Ernst Date: Sat, 21 Dec 2024 19:05:41 +0100 Subject: [PATCH] listen to both IPV6 and IPV4 incoming connections: binding to "::" implies both protocols (#1290) Co-authored-by: Johannes Pohl --- server/server_settings.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/server_settings.hpp b/server/server_settings.hpp index e9f7b717..860d39f7 100644 --- a/server/server_settings.hpp +++ b/server/server_settings.hpp @@ -69,8 +69,8 @@ struct ServerSettings bool ssl_enabled{false}; size_t port{1780}; size_t ssl_port{1788}; - std::vector bind_to_address{{"0.0.0.0"}}; - std::vector ssl_bind_to_address{{"0.0.0.0"}}; + std::vector bind_to_address{{"::"}}; + std::vector ssl_bind_to_address{{"::"}}; std::string doc_root{""}; std::string host{""}; std::string url_prefix{""}; @@ -80,7 +80,7 @@ struct ServerSettings { bool enabled{true}; size_t port{1705}; - std::vector bind_to_address{{"0.0.0.0"}}; + std::vector bind_to_address{{"::"}}; }; struct Stream @@ -92,7 +92,7 @@ struct ServerSettings std::string sampleFormat{"48000:16:2"}; size_t streamChunkMs{20}; bool sendAudioToMutedClients{false}; - std::vector bind_to_address{{"0.0.0.0"}}; + std::vector bind_to_address{{"::"}}; }; struct StreamingClient