Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
fixed vnc port when use default port (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamacro authored and lanwen committed Sep 25, 2017
1 parent 78d2887 commit 2e323d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/components/VncCard/VncScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export default class VncScreen extends Component {

if (origin && session) {
let link = urlTo(window.location.href);
this.rfb.connect(link.hostname, link.port, "selenoid", `ws/vnc/${session}`);
let port = link.port || link.protocol === "https:" ? "443" : "80";
this.rfb.connect(link.hostname, port, "selenoid", `ws/vnc/${session}`);
}
}

Expand Down

0 comments on commit 2e323d8

Please sign in to comment.