parent
a0e7ab43dc
commit
3f3ef04515
|
|
@ -200,16 +200,22 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
password = WebUtil.getQueryVar('password', '');
|
||||||
|
path = WebUtil.getQueryVar('path', 'websockify');
|
||||||
|
|
||||||
// If a token variable is passed in, set the parameter in a cookie.
|
// If a token variable is passed in, set the parameter in a cookie.
|
||||||
// This is used by nova-novncproxy.
|
// This is used by nova-novncproxy.
|
||||||
token = WebUtil.getQueryVar('token', null);
|
token = WebUtil.getQueryVar('token', null);
|
||||||
if (token) {
|
if (token) {
|
||||||
|
|
||||||
|
if (path.indexOf("?") > -1)
|
||||||
|
path += "&token=" + token; //there is a query string already
|
||||||
|
else
|
||||||
|
path += "?token=" + token;
|
||||||
|
|
||||||
WebUtil.createCookie('token', token, 1)
|
WebUtil.createCookie('token', token, 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
password = WebUtil.getQueryVar('password', '');
|
|
||||||
path = WebUtil.getQueryVar('path', 'websockify');
|
|
||||||
|
|
||||||
if ((!host) || (!port)) {
|
if ((!host) || (!port)) {
|
||||||
updateState(null, 'fatal', null, 'Must specify host and port in URL');
|
updateState(null, 'fatal', null, 'Must specify host and port in URL');
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue