Skip to content

Commit

Permalink
Fix proxy gw selection when a gw is down
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferenc Holzhauser committed Nov 23, 2020
1 parent d4d6a42 commit 1373f24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ergw_proxy_lib.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1373f24

Please sign in to comment.