mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
More work on IP-KVM/PowerSwitch relay.
This commit is contained in:
parent
aa514534c4
commit
4e2b334f02
2 changed files with 9 additions and 6 deletions
|
@ -1005,9 +1005,9 @@ function CreateMiniRouter(parent, nodeid, targetHost, targetPort) {
|
|||
socket.on('end', function () { close(this); });
|
||||
socket.on('error', function (err) { close(this); });
|
||||
|
||||
// Encode the device relay cookie. Note that there si no userid in this cookie.
|
||||
// Encode the device relay cookie. Note that there is no userid in this cookie.
|
||||
const domainid = obj.nodeid.split('/')[1];
|
||||
const cookie = parent.parent.encodeCookie({ domainid: domainid, nodeid: obj.nodeid, tcpaddr: obj.targetHost, tcpport: obj.targetPort }, parent.parent.loginCookieEncryptionKey);
|
||||
const cookie = parent.parent.encodeCookie({ nouser: 1, domainid: domainid, nodeid: obj.nodeid, tcpaddr: obj.targetHost, tcpport: obj.targetPort }, parent.parent.loginCookieEncryptionKey);
|
||||
const domain = parent.parent.config.domains[domainid];
|
||||
|
||||
// Setup the correct URL with domain and use TLS only if needed.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue