mirror of
https://github.com/unraid/webgui.git
synced 2026-04-25 20:01:38 -05:00
Update IPADDR references
This commit is contained in:
@@ -74,7 +74,7 @@ img.stopped{opacity:0.3;}
|
||||
$info = $DockerTemplates->getAllInfo();
|
||||
$contextMenus = [];
|
||||
|
||||
$IP = $var["IPADDR"];
|
||||
$IP = $eth0["IPADDR:0"];
|
||||
foreach ($all_containers as $ct) {
|
||||
$name = $ct["Name"];
|
||||
$is_autostart = ($info[$name]['autostart']) ? 'true' : 'false';
|
||||
|
||||
@@ -247,7 +247,7 @@ class DockerTemplates {
|
||||
$WebUI = $this->getTemplateValue($Repository, "WebUI");
|
||||
|
||||
if (preg_match("%\[IP\]%", $WebUI)) {
|
||||
$WebUI = preg_replace("%\[IP\]%", $var["IPADDR"], $WebUI);
|
||||
$WebUI = preg_replace("%\[IP\]%", $eth0["IPADDR:0"], $WebUI);
|
||||
}
|
||||
if (preg_match("%\[PORT:(\d+)\]%", $WebUI, $matches)) {
|
||||
$ConfigPort = $matches[1];
|
||||
|
||||
@@ -131,7 +131,7 @@
|
||||
$wsport = $lv->domain_get_ws_port($dom);
|
||||
|
||||
if ($vncport > 0) {
|
||||
$vnc = '/plugins/dynamix.vm.manager/vnc.html?autoconnect=true&host='.$var['IPADDR'].'&port='.$wsport;
|
||||
$vnc = '/plugins/dynamix.vm.manager/vnc.html?autoconnect=true&host='.$eth0['IPADDR:0'].'&port='.$wsport;
|
||||
$arrResponse['vncurl'] = $vnc;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@ foreach ($allVMs as $name) {
|
||||
$vnc = '';
|
||||
if ($vncport > 0) {
|
||||
$wsport = $lv->domain_get_ws_port($res);
|
||||
$vnc = '/plugins/dynamix.vm.manager/vnc.html?autoconnect=true&host=' . $var['IPADDR'] . '&port=' . $wsport;
|
||||
$vnc = '/plugins/dynamix.vm.manager/vnc.html?autoconnect=true&host=' . $eth0['IPADDR:0'] . '&port=' . $wsport;
|
||||
} else {
|
||||
$vncport = ($vncport < 0) ? "auto" : "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user