mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Update Ingoing s2s connections inner state to hold domain name (thanks to Juan Pablo Carlino)(EJAB-972)
SVN Revision: 2489
This commit is contained in:
parent
3e45bdcc2d
commit
3571ef9767
@ -532,6 +532,14 @@ handle_sync_event(get_state_infos, _From, StateName, StateData) ->
|
|||||||
catch
|
catch
|
||||||
_:_ -> {unknown,unknown}
|
_:_ -> {unknown,unknown}
|
||||||
end,
|
end,
|
||||||
|
Domains = case StateData#state.authenticated of
|
||||||
|
true ->
|
||||||
|
[StateData#state.auth_domain];
|
||||||
|
false ->
|
||||||
|
Connections = StateData#state.connections,
|
||||||
|
[D || {{D, _}, established} <-
|
||||||
|
dict:to_list(Connections)]
|
||||||
|
end,
|
||||||
Infos = [
|
Infos = [
|
||||||
{direction, in},
|
{direction, in},
|
||||||
{statename, StateName},
|
{statename, StateName},
|
||||||
@ -543,7 +551,8 @@ handle_sync_event(get_state_infos, _From, StateName, StateData) ->
|
|||||||
{tls_options, StateData#state.tls_options},
|
{tls_options, StateData#state.tls_options},
|
||||||
{authenticated, StateData#state.authenticated},
|
{authenticated, StateData#state.authenticated},
|
||||||
{shaper, StateData#state.shaper},
|
{shaper, StateData#state.shaper},
|
||||||
{sockmod, SockMod}
|
{sockmod, SockMod},
|
||||||
|
{domains, Domains}
|
||||||
],
|
],
|
||||||
Reply = {state_infos, Infos},
|
Reply = {state_infos, Infos},
|
||||||
{reply,Reply,StateName,StateData};
|
{reply,Reply,StateName,StateData};
|
||||||
|
Loading…
Reference in New Issue
Block a user