Skip to content

Commit

Permalink
fixed balancers fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
BI7PRK committed Mar 16, 2024
1 parent 55bdf1d commit 3a8e585
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions public/root/etc/init.d/xray_luci
Original file line number Diff line number Diff line change
Expand Up @@ -886,8 +886,6 @@ add_dns_settings() {
add_observatory_settings() {
if [ "$strategy_type" = "leastPing" ]; then
json_add_object "observatory"
test -n "$fallback_tag" &&
json_add_string "fallbackTag" "$fallback_tag"
test -n "$probeURL" &&
json_add_string "probeURL" "$probeURL"
test -n "$probeInterval" &&
Expand All @@ -899,8 +897,6 @@ add_observatory_settings() {

else
json_add_object "burstObservatory"
test -n "$fallback_tag" &&
json_add_string "fallbackTag" "$fallback_tag"
json_add_object "pingConfig"
test -n "$probeURL" &&
json_add_string "destination" "$probeURL"
Expand Down Expand Up @@ -1064,6 +1060,8 @@ add_routing_settings() {
done

json_close_array # selector
test -n "$fallback_tag" &&
json_add_string "fallbackTag" "$fallback_tag"
json_close_object
fi
done
Expand Down

0 comments on commit 3a8e585

Please sign in to comment.