Browse Source

Initial commit: ajax fetch wg client.conf

pull/1087/head
billz 2 years ago
parent
commit
ee634c4b50
  1. 9
      ajax/networking/get_wgcfg.php

9
ajax/networking/get_wgcfg.php

@ -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);
Loading…
Cancel
Save