Skip to content

Commit

Permalink
Fix device routing disable_preferred_hotspot
Browse files Browse the repository at this point in the history
  • Loading branch information
macpie committed Nov 1, 2023
1 parent d629649 commit a1659bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/device/router_device_routing.erl
Original file line number Diff line number Diff line change
Expand Up @@ -546,10 +546,10 @@ maybe_buy_join_offer(Device, PayloadSize, Hotspot, PHash) ->
{error, _Reason} = Error ->
Error;
ok ->
case router_utils:get_env_bool(disable_preferred_hotspot, true) of
false ->
{ok, Device};
case router_utils:get_env_bool(disable_preferred_hotspot, false) of
true ->
{ok, Device};
false ->
case check_device_preferred_hotspots(Device, Hotspot) of
none_preferred ->
maybe_multi_buy_offer(Device, PHash);
Expand Down

0 comments on commit a1659bf

Please sign in to comment.