mirror of
https://github.com/unraid/webgui.git
synced 2026-01-13 13:09:58 -06:00
Merge pull request #1139 from limetech/fix/vnc_port_settings
Fix: preserve vnc port settings
This commit is contained in:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user