mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Fix shaper selection in ejabberd_c2s
This commit is contained in:
parent
e9a78d0de7
commit
4f69325e3c
@ -24,7 +24,7 @@
|
||||
{fast_tls, ".*", {git, "https://github.com/processone/fast_tls", {tag, "1.1.1"}}},
|
||||
{stringprep, ".*", {git, "https://github.com/processone/stringprep", {tag, "1.0.16"}}},
|
||||
{fast_xml, ".*", {git, "https://github.com/processone/fast_xml", {tag, "1.1.36"}}},
|
||||
{xmpp, ".*", {git, "https://github.com/processone/xmpp", {tag, "1.3.4"}}},
|
||||
{xmpp, ".*", {git, "https://github.com/processone/xmpp", "8614cd2b9cacc1429d2b2451e15465bc4703ba11"}},
|
||||
{fast_yaml, ".*", {git, "https://github.com/processone/fast_yaml", {tag, "1.0.19"}}},
|
||||
{yconf, ".*", {git, "https://github.com/processone/yconf", "f9c235faf828f52bb01881b172646960d5a8d523"}},
|
||||
{jiffy, ".*", {git, "https://github.com/davisp/jiffy", {tag, "0.14.8"}}},
|
||||
|
@ -55,7 +55,7 @@
|
||||
|
||||
-define(SETS, gb_sets).
|
||||
|
||||
-type state() :: map().
|
||||
-type state() :: xmpp_stream_in:state().
|
||||
-export_type([state/0]).
|
||||
|
||||
%%%===================================================================
|
||||
@ -926,7 +926,7 @@ fix_from_to(Pkt, _State) ->
|
||||
Pkt.
|
||||
|
||||
-spec change_shaper(state()) -> state().
|
||||
change_shaper(#{shaper := ShaperName, ip := IP, lserver := LServer,
|
||||
change_shaper(#{shaper := ShaperName, ip := {IP, _}, lserver := LServer,
|
||||
user := U, server := S, resource := R} = State) ->
|
||||
JID = jid:make(U, S, R),
|
||||
Shaper = ejabberd_shaper:match(LServer, ShaperName,
|
||||
|
@ -46,7 +46,7 @@
|
||||
-include("xmpp.hrl").
|
||||
-include("logger.hrl").
|
||||
|
||||
-type state() :: map().
|
||||
-type state() :: xmpp_stream_in:state().
|
||||
-export_type([state/0]).
|
||||
|
||||
%%%===================================================================
|
||||
|
@ -44,7 +44,7 @@
|
||||
-include("xmpp.hrl").
|
||||
-include("logger.hrl").
|
||||
|
||||
-type state() :: map().
|
||||
-type state() :: xmpp_stream_out:state().
|
||||
-export_type([state/0]).
|
||||
|
||||
%%%===================================================================
|
||||
|
@ -38,7 +38,7 @@
|
||||
-include("xmpp.hrl").
|
||||
-include("logger.hrl").
|
||||
|
||||
-type state() :: map().
|
||||
-type state() :: xmpp_stream_in:state().
|
||||
-export_type([state/0]).
|
||||
|
||||
%%%===================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user