From 1373f24d2e2ea138985e0d2cd7536cd0a95e490e Mon Sep 17 00:00:00 2001 From: Ferenc Holzhauser Date: Mon, 23 Nov 2020 09:53:33 +0100 Subject: [PATCH] Fix proxy gw selection when a gw is down --- src/ergw_proxy_lib.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ergw_proxy_lib.erl b/src/ergw_proxy_lib.erl index bc79482c..76638516 100644 --- a/src/ergw_proxy_lib.erl +++ b/src/ergw_proxy_lib.erl @@ -61,7 +61,7 @@ choose_gw(Nodes, NodeSelect, Version, #socket{name = Name} = Socket) -> begin case gtp_path_reg:state({Name, Version, IP}) of down -> - choose_gw(Next, NodeSelect, Socket, Version); + choose_gw(Next, NodeSelect, Version, Socket); State when State =:= undefined; State =:= up -> return({Node, IP}) end