From 5d3bfbc491daaa9a919927c78d6b2e19c08b2d83 Mon Sep 17 00:00:00 2001 From: Jaroslav Drzik Date: Sun, 26 Dec 2021 17:00:21 +0100 Subject: [PATCH] Fix name in href in url --- inc/remotesupport.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/remotesupport.class.php b/inc/remotesupport.class.php index 841fafc..e80b65b 100644 --- a/inc/remotesupport.class.php +++ b/inc/remotesupport.class.php @@ -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"];