mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-05-23 08:32:45 -05:00
[PR #221] [MERGED] Disable WebSockets negotiation by default #6316
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/221
Author: @mprasil
Created: 10/14/2018
Status: ✅ Merged
Merged: 10/15/2018
Merged by: @dani-garcia
Base:
master← Head:ws_disable📝 Commits (2)
9ecc98cDisable WebSockets negotiation by default2e7fa64Do not spawn WS thread if it's disabled📊 Changes
3 files changed (+31 additions, -12 deletions)
View changed files
📝
README.md(+12 -1)📝
src/api/notifications.rs(+17 -11)📝
src/main.rs(+2 -0)📄 Description
This let's users enable WebSockets by setting the
WEBSOCKET_ENABLEDvariable totrue. The reason why I suggest to have this off by default is that for users that won't do that extra proxy configuration this causes issues like the one observed in #203 - essentially breaking the organization functionality in unpredictable way.Users using WebSockets need to do some extra configuration anyways and while this change will break their configuration, it will not break the core functionality, just the WebSockets won't be used until they turn it back on.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.