mirror of
https://github.com/optim-enterprises-bv/control-pane.git
synced 2025-10-30 01:22:24 +00:00
handle "server_name _"
This commit is contained in:
@@ -21,7 +21,12 @@ function runVNC($jname)
|
||||
} else {
|
||||
$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
|
||||
header('Location: http://'.$nodeip.':6081/vnc_lite.html?scale=true&host='.$nodeip.'&port=6081?password='.$pass);
|
||||
exit;
|
||||
|
||||
Reference in New Issue
Block a user