fix dns formatting, change ttl to number
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@ async function RegisterNewDomain(domain) {
|
|||||||
if (!prefix) throw new Error("Invalid domain");
|
if (!prefix) throw new Error("Invalid domain");
|
||||||
|
|
||||||
const key = `${prefix}`;
|
const key = `${prefix}`;
|
||||||
const value = JSON.stringify({ host: '10.66.66.1', ttl: '300' });
|
const value = JSON.stringify({ host: '10.66.66.1', ttl: 300 });
|
||||||
|
|
||||||
await client.put(key).value(value);
|
await client.put(key).value(value);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user