Fix name in href in url

This commit is contained in:
Jaroslav Drzik
2021-12-26 17:00:21 +01:00
parent 72fe3d8335
commit 5d3bfbc491

View File

@@ -22,7 +22,7 @@ class PluginRemotesupportRemotesupport extends CommonDBTM
return true;
}
$href = "https://" . $_SERVER['SERVER_ADDR'] . "/vnc.html?path=vnc%2F" . $a_computerextend['remote_addr'] . "&autoconnect=true&resize=scale&reconnect=true&show_dot=true";
$href = "https://" . $_SERVER['SERVER_NAME'] . "/vnc.html?path=vnc%2F" . $a_computerextend['remote_addr'] . "&autoconnect=true&resize=scale&reconnect=true&show_dot=true";
$name = $a_computerextend['remote_addr'];
} else {
$href = "vnc://" . $item->fields["name"];