Skip to content

Commit a6ee24f

Browse files
committed
MyFrameMain: fix port parsing for vnc:// URIs
re #200
1 parent ffcb50a commit a6ee24f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/MyFrameMain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ void MyFrameMain::conn_spawn(const wxString& service, int listenPort)
964964
if (service.substr(0, vncUriScheme.length()) == vncUriScheme) {
965965
// vnc:// URI
966966
wxURI uri(service);
967-
host = uri.GetServer();
967+
host = uri.GetServer() + ":" + uri.GetPort();
968968
user = getQueryValue(uri, "VncUsername"); // RFC 7869
969969
if (user.IsEmpty()) {
970970
user = uri.GetUserInfo(); // fallback

0 commit comments

Comments
 (0)