mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: dont autoconnect for spiders, closes #12620
This commit is contained in:
@@ -16,6 +16,7 @@ app = window.app || {};
|
|||||||
reconnectionAttempts: config.maxReconnectionAttempts,
|
reconnectionAttempts: config.maxReconnectionAttempts,
|
||||||
reconnectionDelay: config.reconnectionDelay,
|
reconnectionDelay: config.reconnectionDelay,
|
||||||
transports: config.socketioTransports,
|
transports: config.socketioTransports,
|
||||||
|
autoConnect: false,
|
||||||
path: config.relative_path + '/socket.io',
|
path: config.relative_path + '/socket.io',
|
||||||
query: {
|
query: {
|
||||||
_csrf: config.csrf_token,
|
_csrf: config.csrf_token,
|
||||||
@@ -48,6 +49,7 @@ app = window.app || {};
|
|||||||
hooks = _hooks;
|
hooks = _hooks;
|
||||||
if (parseInt(app.user.uid, 10) >= 0) {
|
if (parseInt(app.user.uid, 10) >= 0) {
|
||||||
addHandlers();
|
addHandlers();
|
||||||
|
socket.connect();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user