20 lines
561 B
Diff
20 lines
561 B
Diff
|
commit 754011f2bc5696466de5f45c3781c7a0cd961b9a
|
||
|
Author: Daniel P. Berrange <berrange@redhat.com>
|
||
|
Date: Fri Aug 12 15:37:51 2011 +0100
|
||
|
|
||
|
Fix inverted sshport test that broke SSH tunnelling
|
||
|
|
||
|
diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
|
||
|
index cf7811e..71284b6 100644
|
||
|
--- a/src/virt-viewer-app.c
|
||
|
+++ b/src/virt-viewer-app.c
|
||
|
@@ -319,7 +319,7 @@ virt_viewer_app_open_tunnel_ssh(const char *sshhost,
|
||
|
int n = 0;
|
||
|
|
||
|
cmd[n++] = "ssh";
|
||
|
- if (!sshport) {
|
||
|
+ if (sshport) {
|
||
|
cmd[n++] = "-p";
|
||
|
sprintf(portstr, "%d", sshport);
|
||
|
cmd[n++] = portstr;
|