Merge pull request #1139 from limetech/fix/vnc_port_settings

Fix: preserve vnc port settings
This commit is contained in:
tom mortensen
2022-07-26 08:41:42 -07:00
committed by GitHub

View File

@@ -1165,6 +1165,7 @@
// settings not in the GUI, but maybe customized
unset($new['memoryBacking'], $new['clock'], $new['features']);
// preserve vnc port settings
unset($new['devices']['graphics']['@attributes']['port'],$new['devices']['graphics']['@attributes']['autoport']);
if (!$new['devices']['graphics']) unset($old['devices']['graphics']);
// update parent arrays
if (!$old['devices']['hostdev']) unset($old['devices']['hostdev']);