mirror of
https://github.com/optim-enterprises-bv/control-pane.git
synced 2025-11-03 19:37:46 +00:00
handle "server_name _"
This commit is contained in:
@@ -22,6 +22,11 @@ function runVNC($jname)
|
|||||||
$nodeip=$_SERVER['SERVER_ADDR'];
|
$nodeip=$_SERVER['SERVER_ADDR'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// handle when 'server_name _;' - use IP instead
|
||||||
|
if (strcmp($nodeip, "_") == 0) {
|
||||||
|
$nodeip=$_SERVER['SERVER_ADDR'];
|
||||||
|
}
|
||||||
|
|
||||||
# TODO: This will send the pass in clear text
|
# TODO: This will send the pass in clear text
|
||||||
header('Location: http://'.$nodeip.':6081/vnc_lite.html?scale=true&host='.$nodeip.'&port=6081?password='.$pass);
|
header('Location: http://'.$nodeip.':6081/vnc_lite.html?scale=true&host='.$nodeip.'&port=6081?password='.$pass);
|
||||||
exit;
|
exit;
|
||||||
|
|||||||
Reference in New Issue
Block a user