update
Some checks failed
Build GurtCA / Build GurtCA (, ubuntu-latest, linux, x86_64-unknown-linux-gnu) (push) Failing after 11m17s
Build Gurty / Build Gurty (, ubuntu-latest, linux, x86_64-unknown-linux-gnu) (push) Failing after 12m9s
Build GurtCA / Build GurtCA (.exe, windows-latest, windows, x86_64-pc-windows-msvc) (push) Has been cancelled
Build Gurty / Build Gurty (.exe, windows-latest, windows, x86_64-pc-windows-msvc) (push) Has been cancelled

This commit is contained in:
2025-11-07 18:27:37 +08:00
parent a508e3cefd
commit f2f63d32e5
9 changed files with 19 additions and 19 deletions

View File

@@ -75,7 +75,7 @@ end
local function loadTLDs()
print('Loading available TLDs...')
local response = fetch('lw://dns.web/tlds')
local response = fetch('lw://dns.root/tlds')
if response:ok() then
tlds = response:json()
@@ -91,7 +91,7 @@ local function checkAuth()
if authToken then
print('Found auth token, checking validity...')
local response = fetch('lw://dns.web/auth/me', {
local response = fetch('lw://dns.root/auth/me', {
headers = {
Authorization = 'Bearer ' .. authToken
}
@@ -127,7 +127,7 @@ local function submitDomain(name, tld)
hideError('domain-error')
print('Submitting domain: ' .. name .. '.' .. tld)
local response = fetch('lw://dns.web/domain', {
local response = fetch('lw://dns.root/domain', {
method = 'POST',
headers = {
['Content-Type'] = 'application/json',
@@ -157,7 +157,7 @@ end
local function createInvite()
print('Creating invite code...')
local response = fetch('lw://dns.web/auth/invite', {
local response = fetch('lw://dns.root/auth/invite', {
method = 'POST',
headers = {
Authorization = 'Bearer ' .. authToken
@@ -184,7 +184,7 @@ local function redeemInvite(code)
hideError('redeem-error')
print('Redeeming invite code: ' .. code)
local response = fetch('lw://dns.web/auth/redeem-invite', {
local response = fetch('lw://dns.root/auth/redeem-invite', {
method = 'POST',
headers = {
['Content-Type'] = 'application/json',