Skip to content

Commit

Permalink
Hotfix: Add domain support for RDP sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
gnmyt committed Sep 18, 2024
1 parent 585b6bc commit 91e3215
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/utils/tokenGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ module.exports.createVNCToken = (hostname, port, username, password) => {
};

module.exports.createRDPToken = (hostname, port, username, password) => {
let domain = "";
if (username.includes("\\")) [domain, username] = username.split("\\");

return encryptToken({
connection: {
type: "rdp", settings: { hostname, username, port, password, "ignore-cert": true,
type: "rdp", settings: { hostname, username, port, password, "ignore-cert": true, domain,
"resize-method": "display-update", "enable-wallpaper": true, "enable-theming": true }
},
});
Expand Down

0 comments on commit 91e3215

Please sign in to comment.