Initial commit: ajax fetch wg client.conf

This commit is contained in:
billz 2021-03-15 10:11:36 +00:00
parent 2b3d37a68a
commit ee634c4b50

View file

@ -0,0 +1,9 @@
<?php
require '../../includes/csrf.php';
require_once '../../includes/config.php';
// fetch wg client.conf
exec('sudo cat '. RASPI_WIREGUARD_PATH.'client.conf', $return);
echo implode(PHP_EOL,$return);