From a61b4f18a1f9dcb78dba4bcde48a9318b04a45ec Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 23 Jul 2019 17:21:29 +0200 Subject: [SERVER] Add pretendClient config option This makes the server not set the FLAGS8_SERVER flag when establishing an uplink connection. Useful mostly for running a proxy on localhost for local caching. --- src/server/globals.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/server/globals.h') diff --git a/src/server/globals.h b/src/server/globals.h index 9b10ee4..031f565 100644 --- a/src/server/globals.h +++ b/src/server/globals.h @@ -265,6 +265,13 @@ extern atomic_int _maxPayload; */ extern atomic_uint_fast64_t _maxReplicationSize; +/** + * Pretend to be a client when talking to others servers, + * effectively not setting the server bit during connection + * setup. Useful for local caching. + */ +extern atomic_bool _pretendClient; + /** * Load the server configuration. */ -- cgit v1.2.3-55-g7522