Refactor wireguard to use a different config dir instead of /etc/wireguard
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
const WIREGUARD_INTERFACE_NAME_PREFIX = `wgui`;
|
||||
|
||||
type Params = {
|
||||
host_id: number;
|
||||
};
|
||||
|
||||
export default function deriveWireguardInterfaceName({ host_id }: Params) {
|
||||
return `${WIREGUARD_INTERFACE_NAME_PREFIX}${host_id}`;
|
||||
}
|
||||
Reference in New Issue
Block a user