From 8d1eac3aea8d02e5cfa5293170731607013430c6 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 16 Feb 2018 14:43:26 +1100 Subject: [PATCH] Do not reconnect vmask clients to global proxies that don't support it. --- src/stratifier.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/stratifier.c b/src/stratifier.c index bb5225b4..cb8a7df4 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -2646,6 +2646,10 @@ static void reconnect_global_clients(sdata_t *sdata) continue; if (!client->authorised) continue; + /* Does the client mandate a vmask but the best proxy not + * support it? */ + if (client->vmask && !proxy->version_mask) + continue; /* Is this client bound to a dead proxy? */ if (!client->reconnect) { /* This client is bound to a user proxy */