Fix wrong match pattern

This commit is contained in:
Сергей Прохоров 2018-10-15 13:56:15 +02:00
parent a28cb437f9
commit a182c3be65
No known key found for this signature in database
GPG key ID: 1C570244E4EF3337

View file

@ -291,11 +291,11 @@ down_send(Packet, #state{down = Down} = S) ->
handle_upstream_header(DcId, #state{acc = Acc, ad_tag = Tag, addr = Addr} = S) ->
Opts = #{ad_tag => Tag,
addr => Addr},
{DcId, _Pool, Downstream} = mtp_config:get_downstream_safe(DcId, Opts),
{RealDcId, _Pool, Downstream} = mtp_config:get_downstream_safe(DcId, Opts),
handle_upstream_data(
Acc,
S#state{down = Downstream,
dc_id = DcId,
dc_id = RealDcId,
acc = <<>>,
stage = tunnel}).