diff options
| author | Rutger Broekhoff | 2026-12-02 00:45:09 +0100 |
|---|---|---|
| committer | Rutger Broekhoff | 2026-12-02 00:45:09 +0100 |
| commit | fcc9de22c1d7336c3b979e7f2f097b5e5fbb428f (patch) | |
| tree | 50f80f3d752720a04bdd797e2aa4dc388ae0fc1d /server/src/main.cpp | |
| parent | eb3e4cdd383a3efc25c29df1739170de6fed6431 (diff) | |
| download | routemon-fcc9de22c1d7336c3b979e7f2f097b5e5fbb428f.tar.gz routemon-fcc9de22c1d7336c3b979e7f2f097b5e5fbb428f.zip | |
Diffstat (limited to 'server/src/main.cpp')
| -rw-r--r-- | server/src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<void> | |||
| 142 | auto sock = net::local::datagram_protocol::socket{ | 142 | auto sock = net::local::datagram_protocol::socket{ |
| 143 | co_await net::this_coro::executor | 143 | co_await net::this_coro::executor |
| 144 | }; | 144 | }; |
| 145 | co_await sock.async_send_to(net::buffer(msg), endpoint); | 145 | co_await sock.async_connect(endpoint); |
| 146 | co_await sock.async_send(net::buffer(msg)); | ||
| 146 | } | 147 | } |
| 147 | catch (std::exception const& e) | 148 | catch (std::exception const& e) |
| 148 | { | 149 | { |