Skip to content

Commit

Permalink
Merge pull request #71 from solusio/bugfix-akazakov-update-vnc-passwo…
Browse files Browse the repository at this point in the history
…rd-path-SIO-4253

BUGFIX SIO-4253 update vnc password path
  • Loading branch information
cyxrop authored May 18, 2022
2 parents c06178b + 40c4e92 commit 69d3d0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/servers/solusiovps/pages/vnc.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
$serverParams = Server::getParams($serverId);
$serverResource = new ServerResource(Connector::create($serverParams));
$server = $serverResource->get($solusServer->server_id);
$password = $server['data']['settings']['vnc']['password'];
$password = $server['data']['settings']['vnc_password'] ?? $server['data']['settings']['vnc']['password'];
$response = $serverResource->vncUp($solusServer->server_id);
$url = 'wss://' . $serverParams['serverhostname'] . '/vnc?url=' . $response['url'];

Expand Down

0 comments on commit 69d3d0a

Please sign in to comment.