From 3e992ee00cea5ea9b0691f94409736dbded36b47 Mon Sep 17 00:00:00 2001 From: bergware Date: Fri, 11 Aug 2023 02:13:48 +0200 Subject: [PATCH] Update libvirt_helpers.php --- emhttp/plugins/dynamix.vm.manager/include/libvirt_helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emhttp/plugins/dynamix.vm.manager/include/libvirt_helpers.php b/emhttp/plugins/dynamix.vm.manager/include/libvirt_helpers.php index 3b4e49664..c1be41e26 100644 --- a/emhttp/plugins/dynamix.vm.manager/include/libvirt_helpers.php +++ b/emhttp/plugins/dynamix.vm.manager/include/libvirt_helpers.php @@ -1066,7 +1066,7 @@ private static $encoding = 'UTF-8'; function getValidNetworks() { global $lv; $arrValidNetworks = []; - exec("ip -br a|grep -Po '^((vir)?br|vhost)[0-9]+(\.[0-9]+)?'",$arrBridges); + exec("ls --indicator-style=none /sys/class/net|grep -Po '^((vir)?br|vhost)[0-9]+(\.[0-9]+)?'",$arrBridges); if (!is_array($arrBridges)) { $arrBridges = []; }