Node.js based forum software built for the modern web
fix: dont autoconnect for spiders, closes #12620
Barış Soner Uşaklıb6671d1672f8
diff --git a/public/src/sockets.js b/public/src/sockets.jsindex e4ef8273e1..2302eafe47 100644--- a/public/src/sockets.js+++ b/public/src/sockets.js@@ -16,6 +16,7 @@ app = window.app || {};reconnectionAttempts: config.maxReconnectionAttempts,reconnectionDelay: config.reconnectionDelay,transports: config.socketioTransports,+ autoConnect: false,path: config.relative_path + '/socket.io',query: {_csrf: config.csrf_token,@@ -48,6 +49,7 @@ app = window.app || {};hooks = _hooks;if (parseInt(app.user.uid, 10) >= 0) {addHandlers();+ socket.connect();}});