aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/proxy/zenproxyserver.h
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-03-12 17:02:01 +0100
committerGitHub Enterprise <[email protected]>2026-03-12 17:02:01 +0100
commit3aa6aa83d05249d7081a8c19a28ce9b9c4566da2 (patch)
treef4f14006e82cdf0ed05083c9af90e17116614368 /src/zenserver/proxy/zenproxyserver.h
parentUpdate CHANGELOG.md (diff)
downloadzen-3aa6aa83d05249d7081a8c19a28ce9b9c4566da2.tar.xz
zen-3aa6aa83d05249d7081a8c19a28ce9b9c4566da2.zip
Add --no-network option (#831)
- Add `--no-network` CLI option which disables all TCP/HTTPS listeners, restricting zenserver to Unix domain socket communication only. - Also fixes asio upgrade breakage on main
Diffstat (limited to 'src/zenserver/proxy/zenproxyserver.h')
-rw-r--r--src/zenserver/proxy/zenproxyserver.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/zenserver/proxy/zenproxyserver.h b/src/zenserver/proxy/zenproxyserver.h
index 7dad748cf..329ca5235 100644
--- a/src/zenserver/proxy/zenproxyserver.h
+++ b/src/zenserver/proxy/zenproxyserver.h
@@ -7,6 +7,7 @@
#include "proxy/tcpproxy.h"
#include <memory>
+#include <optional>
#include <thread>
#include <vector>
@@ -84,13 +85,13 @@ public:
void Cleanup();
private:
- asio::io_context m_ProxyIoContext;
- std::unique_ptr<asio::io_context::work> m_ProxyIoWorkGuard;
- std::vector<std::thread> m_ProxyIoThreads;
- std::vector<std::unique_ptr<TcpProxyService>> m_ProxyServices;
- std::unique_ptr<HttpApiService> m_ApiService;
- std::unique_ptr<HttpFrontendService> m_FrontendService;
- std::unique_ptr<HttpProxyStatsService> m_ProxyStatsService;
+ asio::io_context m_ProxyIoContext;
+ std::optional<asio::executor_work_guard<asio::io_context::executor_type>> m_ProxyIoWorkGuard;
+ std::vector<std::thread> m_ProxyIoThreads;
+ std::vector<std::unique_ptr<TcpProxyService>> m_ProxyServices;
+ std::unique_ptr<HttpApiService> m_ApiService;
+ std::unique_ptr<HttpFrontendService> m_FrontendService;
+ std::unique_ptr<HttpProxyStatsService> m_ProxyStatsService;
};
} // namespace zen