mirror of
https://github.com/unraid/webgui.git
synced 2026-01-28 20:49:04 -06:00
Suppress WireGuard on dashboard when not installed
This commit is contained in:
@@ -56,7 +56,7 @@ function vpn_peers($file) {
|
||||
$dockerd = pgrep('dockerd');
|
||||
$libvirtd = pgrep('libvirtd');
|
||||
$apcupsd = file_exists('/var/run/apcupsd.pid');
|
||||
$wireguard = is_executable('/usr/bin/wg');
|
||||
$wireguard = is_executable('/usr/bin/wg') && file_exists('/var/log/plugins/dynamix.wireguatd.plg');
|
||||
$started = $var['fsState']=='Started';
|
||||
$sleep = isset($display['sleep']);
|
||||
$cache_pool = $var['cacheSbNumDisks'];
|
||||
|
||||
Reference in New Issue
Block a user