Skip to content

Commit 88288bf

Browse files
committed
use improved backupSelector behavior
1 parent 9b49693 commit 88288bf

4 files changed

Lines changed: 12 additions & 18 deletions

File tree

zones/lua-grapheneos.zone

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@
8686
" ips = {ips_sao, ips_mia, ips_south_central, ips_yto, ips_lax, ips_sea, ips_lon, ips_ams, ips_nue, ips_tyo, ips_sin, ips_syd}"
8787
" end"
8888
" end"
89-
" local result = ifurlup('https://grapheneos.org/robots.txt', ips, {selector='all', backupSelector='empty'})"
90-
" if #result == 0 then return ips[1] else return result end")
89+
" return ifurlup('https://grapheneos.org/robots.txt', ips, {selector='all', backupSelector='all'})")
9190
@ 300 IN LUA AAAA (";"
9291
" local ips_dal = {'2a02:6ea0:d206::1'}"
9392
" local ips_mia = {'2605:9880:400:1100:15:1240:515:6e'}"
@@ -176,5 +175,4 @@
176175
" ips = {ips_sao, ips_mia, ips_south_central, ips_yto, ips_lax, ips_sea, ips_lon, ips_ams, ips_nue, ips_tyo, ips_sin, ips_syd}"
177176
" end"
178177
" end"
179-
" local result = ifurlup('https://grapheneos.org/robots.txt', ips, {selector='all', backupSelector='empty'})"
180-
" if #result == 0 then return ips[1] else return result end")
178+
" return ifurlup('https://grapheneos.org/robots.txt', ips, {selector='all', backupSelector='all'})")

zones/lua-health.zone

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ health 300 IN LUA TXT (";"
1717
" '207.148.108.82'," ; tyo
1818
" '91.246.30.2'," ; yto
1919
" }"
20-
" ifurlup('https://grapheneos.org/robots.txt', ips, {selector='all', backupSelector='empty'})"
21-
" ifurlup('https://broadcom.psds.grapheneos.org/rtistatus.dat', ips, {selector='all', backupSelector='empty'})"
20+
" ifurlup('https://grapheneos.org/robots.txt', ips, {selector='all', backupSelector='all'})"
21+
" ifurlup('https://broadcom.psds.grapheneos.org/rtistatus.dat', ips, {selector='all', backupSelector='all'})"
2222
" ips = {"
2323
" '2a02:6ea0:d206::1'," ; dal
2424
" '2605:9880:200:400:135:7700:ef0a:81'," ; lax
@@ -32,8 +32,8 @@ health 300 IN LUA TXT (";"
3232
" '2401:c080:1000:13f8:5400:05ff:fee8:3c8b'," ; tyo
3333
" '2602:f4d9:5:1::1'," ; yto
3434
" }"
35-
" ifurlup('https://grapheneos.org/robots.txt', ips, {selector='all', backupSelector='empty'})"
36-
" ifurlup('https://broadcom.psds.grapheneos.org/rtistatus.dat', ips, {selector='all', backupSelector='empty'})"
35+
" ifurlup('https://grapheneos.org/robots.txt', ips, {selector='all', backupSelector='all'})"
36+
" ifurlup('https://broadcom.psds.grapheneos.org/rtistatus.dat', ips, {selector='all', backupSelector='all'})"
3737
" ips = {"
3838
" '84.32.64.33'," ; ams
3939
" '121.127.40.19'," ; dal
@@ -42,13 +42,13 @@ health 300 IN LUA TXT (";"
4242
" '172.96.172.37'," ; mia
4343
" '91.246.30.2'," ; yto
4444
" }"
45-
" ifurlup('https://releases.grapheneos.org/comet-stable', ips, {selector='all', backupSelector='empty', stringmatch='comet stable'})"
45+
" ifurlup('https://releases.grapheneos.org/comet-stable', ips, {selector='all', backupSelector='all', stringmatch='comet stable'})"
4646
" ips = {"
4747
" '2a02:6ea0:d206::1'," ; dal
4848
" '2605:9880:200:400:135:7700:ef0a:81'," ; lax
4949
" '2a01:4020:0:52::2'," ; lon
5050
" '2605:9880:400:1100:15:1240:515:6e'," ; mia
5151
" '2602:f4d9:5:1::1'," ; yto
5252
" }"
53-
" ifurlup('https://releases.grapheneos.org/comet-stable', ips, {selector='all', backupSelector='empty', stringmatch='comet stable'})"
53+
" ifurlup('https://releases.grapheneos.org/comet-stable', ips, {selector='all', backupSelector='all', stringmatch='comet stable'})"
5454
" return 'success'")

zones/lua-network.zone

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@
8686
" ips = {ips_sao, ips_mia, ips_south_central, ips_yto, ips_lax, ips_sea, ips_lon, ips_ams, ips_nue, ips_tyo, ips_sin, ips_syd}"
8787
" end"
8888
" end"
89-
" local result = ifurlup('https://broadcom.psds.grapheneos.org/rtistatus.dat', ips, {selector='all', backupSelector='empty'})"
90-
" if #result == 0 then return ips[1] else return result end")
89+
" return ifurlup('https://broadcom.psds.grapheneos.org/rtistatus.dat', ips, {selector='all', backupSelector='all'})")
9190
@ 300 IN LUA AAAA (";"
9291
" local ips_dal = {'2a02:6ea0:d206::1'}"
9392
" local ips_mia = {'2605:9880:400:1100:15:1240:515:6e'}"
@@ -176,5 +175,4 @@
176175
" ips = {ips_sao, ips_mia, ips_south_central, ips_yto, ips_lax, ips_sea, ips_lon, ips_ams, ips_nue, ips_tyo, ips_sin, ips_syd}"
177176
" end"
178177
" end"
179-
" local result = ifurlup('https://broadcom.psds.grapheneos.org/rtistatus.dat', ips, {selector='all', backupSelector='empty'})"
180-
" if #result == 0 then return ips[1] else return result end")
178+
" return ifurlup('https://broadcom.psds.grapheneos.org/rtistatus.dat', ips, {selector='all', backupSelector='all'})")

zones/lua-releases.zone

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@
6161
" else"
6262
" ips = {ips_mia, ips_yto, ips_lax, ips_ams, ips_lon}"
6363
" end"
64-
" local result = ifurlup('https://releases.grapheneos.org/comet-stable', ips, {selector='all', backupSelector='empty', stringmatch='comet stable'})"
65-
" if #result == 0 then return ips[1] else return result end")
64+
" return ifurlup('https://releases.grapheneos.org/comet-stable', ips, {selector='all', backupSelector='all', stringmatch='comet stable'})")
6665
@ 300 IN LUA AAAA (";"
6766
" local ips_dal = {'2a02:6ea0:d206::1'}"
6867
" local ips_mia = {'2605:9880:400:1100:15:1240:515:6e'}"
@@ -126,5 +125,4 @@
126125
" else"
127126
" ips = {ips_mia, ips_yto, ips_lax, ips_ams, ips_lon}"
128127
" end"
129-
" local result = ifurlup('https://releases.grapheneos.org/comet-stable', ips, {selector='all', backupSelector='empty', stringmatch='comet stable'})"
130-
" if #result == 0 then return ips[1] else return result end")
128+
" return ifurlup('https://releases.grapheneos.org/comet-stable', ips, {selector='all', backupSelector='all', stringmatch='comet stable'})")

0 commit comments

Comments
 (0)