From 37ef1c2cffc3796e9f2f1fd4147375c484e75e2d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Blin?=
 <sebastien.blin@savoirfairelinux.com>
Date: Fri, 20 Apr 2018 16:18:58 -0400
Subject: [PATCH] proxy: set clientId to listener

clientId was not properly set. so every time someone launch a node
and do a listen on a hash, a new listener is generated and it results
by flooding the node of push notifications.
---
 src/dht_proxy_server.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/dht_proxy_server.cpp b/src/dht_proxy_server.cpp
index 63eeeeea..f9ebf042 100644
--- a/src/dht_proxy_server.cpp
+++ b/src/dht_proxy_server.cpp
@@ -391,6 +391,7 @@ DhtProxyServer::subscribe(const std::shared_ptr<restbed::Session>& session)
                     }
                     listeners->second.emplace_back(Listener{});
                     auto& listener = listeners->second.back();
+                    listener.clientId = clientId;
 
                     // New listener
                     pushListener->second.isAndroid = isAndroid;
-- 
GitLab