mirror of
https://github.com/seriyps/mtproto_proxy.git
synced 2026-05-13 08:46:46 +00:00
Fix handle_cast return value
This commit is contained in:
parent
9b8f382bc6
commit
223258439a
1 changed files with 5 additions and 4 deletions
|
|
@ -139,10 +139,11 @@ handle_cast({proxy_ans, Down, ?SRV_ERROR = Data}, #state{down = Down, srv_error_
|
|||
ok = mtp_down_conn:ack(Down, 1, iolist_size(Data)),
|
||||
?log(warning, "~s: protocol_error srv_error_filtered", [inet:ntoa(Ip)]),
|
||||
mtp_metric:count_inc([?APP, protocol_error, total], 1, #{labels => [srv_error_filtered]}),
|
||||
case Filter of
|
||||
first -> S#state{srv_error_filter = off};
|
||||
on -> S
|
||||
end;
|
||||
{noreply,
|
||||
case Filter of
|
||||
first -> S#state{srv_error_filter = off};
|
||||
on -> S
|
||||
end};
|
||||
handle_cast({proxy_ans, Down, Data}, #state{down = Down, srv_error_filter = Filter} = S) when Filter =/= off ->
|
||||
%% telegram server -> proxy
|
||||
%% Normal data packet
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue