Refactor wireguard to use a different config dir instead of /etc/wireguard
This commit is contained in:
@@ -15,7 +15,7 @@ import type { TableType } from "@/src/types";
|
||||
|
||||
const {
|
||||
WGUI_LIB_CLIENTS_CONFIGS_DIR,
|
||||
WIREGUARD_HOST_CONFIG_DIR,
|
||||
WGUI_LIB_HOSTS_CONFIGS_DIR,
|
||||
WIREGUARD_PRIVATE_KEY_FILE_NAME,
|
||||
WIREGUARD_PUBLIC_KEY_FILE_NAME,
|
||||
WGUI_LIB_KEYS_DIR,
|
||||
@@ -133,7 +133,7 @@ export default async function setupWireguardClient({
|
||||
host?.public_key ||
|
||||
execSync(
|
||||
`cat ${path.join(
|
||||
WIREGUARD_HOST_CONFIG_DIR,
|
||||
WGUI_LIB_HOSTS_CONFIGS_DIR,
|
||||
WIREGUARD_PUBLIC_KEY_FILE_NAME,
|
||||
)}`,
|
||||
{ encoding: "utf-8" },
|
||||
|
||||
Reference in New Issue
Block a user