mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
mod_component: Send back a <conflict/> stream error when multiple sessions attempt to bind.
This commit is contained in:
parent
dbde1c7ea1
commit
f585f295c7
1 changed files with 2 additions and 0 deletions
|
@ -69,6 +69,8 @@ function handle_component_auth(event)
|
|||
log("info", "Component successfully registered");
|
||||
else
|
||||
log("error", "Multiple components bound to the same address, first one wins (TODO: Implement stanza distribution)");
|
||||
session:close{ condition = "conflict", text = "Component already connected" };
|
||||
return true;
|
||||
end
|
||||
|
||||
-- Signal successful authentication
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue