Skip to content

Commit

Permalink
net/wireguard: small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Aug 22, 2023
1 parent 86c9e5c commit dc06d58
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions net/wireguard/src/opnsense/scripts/Wireguard/genkey.sh
Expand Up @@ -26,8 +26,8 @@
# SUCH DAMAGE.

TMPDIR="/tmp"
GENPRIV="/usr/local/bin/wg genkey"
GENPUB="/usr/local/bin/wg pubkey"
GENPRIV="/usr/bin/wg genkey"
GENPUB="/usr/bin/wg pubkey"

cleanup() {
# Delete old files
Expand Down
Expand Up @@ -60,7 +60,7 @@ function wg_start($server, $fhandle)
* where these (and maybe other) static routes hook into.
**/
$peers = explode(',', $server->peers);
$routes_to_add = ['inet'=> [], 'inet6' => []];
$routes_to_add = ['inet' => [], 'inet6' => []];
foreach ((new OPNsense\Wireguard\Client())->clients->client->iterateItems() as $key => $client) {
if (empty((string)$client->enabled) || !in_array($key, $peers)) {
continue;
Expand Down
Expand Up @@ -36,13 +36,13 @@ type:script_output
message:Generating WireGuard keys

[showconf]
command:/usr/local/bin/wg show all
command:/usr/bin/wg show all
parameters:
type:script_output
message:Show WireGuard config

[showhandshake]
command:/usr/local/bin/wg show all latest-handshakes
command:/usr/bin/wg show all latest-handshakes
parameters:
type:script_output
message:Show WireGuard handshakes

0 comments on commit dc06d58

Please sign in to comment.