From fcc9de22c1d7336c3b979e7f2f097b5e5fbb428f Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Wed, 2 Dec 2026 00:45:09 +0100 Subject: actually open socket (implicitly) --- server/src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server') diff --git a/server/src/main.cpp b/server/src/main.cpp index fa85f78..eff56e0 100644 --- a/server/src/main.cpp +++ b/server/src/main.cpp @@ -142,7 +142,8 @@ auto sd_notify(std::string_view msg) -> net::awaitable auto sock = net::local::datagram_protocol::socket{ co_await net::this_coro::executor }; - co_await sock.async_send_to(net::buffer(msg), endpoint); + co_await sock.async_connect(endpoint); + co_await sock.async_send(net::buffer(msg)); } catch (std::exception const& e) { -- cgit v1.3.1