mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-17 19:39:20 +00:00
Add WEBSOCKET_ADDRESS config option (Fixes #199)
This commit is contained in:
parent
8ee681c4a3
commit
9eaa9c1a17
3 changed files with 6 additions and 4 deletions
|
|
@ -250,6 +250,7 @@ impl WebSocketUsers {
|
|||
}
|
||||
|
||||
// NOTE: The last modified date needs to be updated before calling these methods
|
||||
#[allow(dead_code)]
|
||||
pub fn send_user_update(&self, ut: UpdateType, user: &User) {
|
||||
let data = create_update(
|
||||
vec![
|
||||
|
|
@ -358,7 +359,7 @@ pub fn start_notification_server() -> WebSocketUsers {
|
|||
thread::spawn(move || {
|
||||
WebSocket::new(factory)
|
||||
.unwrap()
|
||||
.listen(format!("0.0.0.0:{}", CONFIG.websocket_port))
|
||||
.listen(&CONFIG.websocket_url)
|
||||
.unwrap();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue