Update libvirt.php

This commit is contained in:
bergware
2023-08-10 04:14:15 +02:00
parent 7a7383a84b
commit afe9065663

View File

@@ -676,7 +676,7 @@
$nicboot
</interface>";
} elseif (in_array($nic['network'], $br)) {
if ($bridge) {
if ($bridge || $nic['network']=='virbr0') {
$netstr .= "<interface type='bridge'>
<mac address='{$nic['mac']}'/>
<source bridge='" . htmlspecialchars($nic['network'], ENT_QUOTES | ENT_XML1) . "'/>