Changes parameter from forward-domain to forward-to
This commit is contained in:
parent
450232e7b7
commit
aa90e66b7c
1 changed files with 5 additions and 5 deletions
|
|
@ -2,7 +2,8 @@ import request from "./certnode/lib/request.js";
|
|||
import crypto from "crypto";
|
||||
import fs from "fs";
|
||||
import {fileURLToPath} from "url";
|
||||
const recordParamDestUrl = 'forward-domain';
|
||||
|
||||
const recordParamDestUrl = 'forward-to';
|
||||
const recordParamHttpStatus = 'http-status';
|
||||
let blacklistURL = null;
|
||||
|
||||
|
|
@ -35,8 +36,7 @@ export function isHostBlacklisted(domain = '') {
|
|||
export async function ensureDir(dir) {
|
||||
try {
|
||||
await fs.promises.access(dir, fs.constants.W_OK | fs.constants.O_DIRECTORY);
|
||||
}
|
||||
catch (error) {
|
||||
} catch (error) {
|
||||
await fs.promises.mkdir(dir, {
|
||||
recursive: true
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
editor.link_modal.header
Reference in a new issue