summaryrefslogtreecommitdiffstats
path: root/x11vnc/misc/enhanced_tightvnc_viewer/bin/util/ssvnc.tcl
diff options
context:
space:
mode:
authorrunge <runge@karlrunge.com>2010-04-18 20:37:28 -0400
committerrunge <runge@karlrunge.com>2010-04-18 20:37:28 -0400
commit6de3f0bed722384fe21567c13a76843d64491bf4 (patch)
tree5d2d1e51c12c9447678f09e9f63d961f986281f6 /x11vnc/misc/enhanced_tightvnc_viewer/bin/util/ssvnc.tcl
parentb74c8f4241ec8c3d972ee97d0ce9a399ddd09ce1 (diff)
downloadlibtdevnc-6de3f0bed722384fe21567c13a76843d64491bf4.tar.gz
libtdevnc-6de3f0bed722384fe21567c13a76843d64491bf4.zip
Sync ssvncviewer changes.
Diffstat (limited to 'x11vnc/misc/enhanced_tightvnc_viewer/bin/util/ssvnc.tcl')
-rwxr-xr-xx11vnc/misc/enhanced_tightvnc_viewer/bin/util/ssvnc.tcl22
1 files changed, 15 insertions, 7 deletions
diff --git a/x11vnc/misc/enhanced_tightvnc_viewer/bin/util/ssvnc.tcl b/x11vnc/misc/enhanced_tightvnc_viewer/bin/util/ssvnc.tcl
index 21f3d9f..dc9e2b4 100755
--- a/x11vnc/misc/enhanced_tightvnc_viewer/bin/util/ssvnc.tcl
+++ b/x11vnc/misc/enhanced_tightvnc_viewer/bin/util/ssvnc.tcl
@@ -439,8 +439,9 @@ proc help {} {
Options -> Help), the port mapping is similar, except "listening
display :0" corresponds to port 5500, :1 to 5501, etc.
Specify a specific interface, e.g. 192.168.1.1:0 to have stunnel
- only listen on that interface. IPv6 also works, e.g. :::0 or ::1:0
- This also works for UN-encrypted reverse connections as well ('None').
+ listen on that interface only. Listening on IPv6 can also be done, use
+ e.g. :::0 or ::1:0 This listening on IPv6 (:::0) works for UN-encrypted
+ reverse connections as well (mode 'None').
Zeroconf/Bonjour:
@@ -3455,6 +3456,9 @@ proc do_viewer_windows {n} {
set nn [expr "$nn + 5500"]
}
global direct_connect_reverse_host_orig is_win9x
+ if {![info exists direct_connect_reverse_host_orig]} {
+ set direct_connect_reverse_host_orig ""
+ }
if {$direct_connect_reverse_host_orig != "" && !$is_win9x} {
set nn2 [expr $nn + 15]
set h0 $direct_connect_reverse_host_orig
@@ -8627,11 +8631,15 @@ proc launch {{hp ""}} {
set ipv6_pid ""
global have_ipv6
if {$have_ipv6} {
- set res [ipv6_proxy $proxy $host $port]
- set proxy [lindex $res 0]
- set host [lindex $res 1]
- set port [lindex $res 2]
- set ipv6_pid [lindex $res 3]
+ if {$proxy == "" && $use_ssl} {
+ # stunnel can handle ipv6
+ } else {
+ set res [ipv6_proxy $proxy $host $port]
+ set proxy [lindex $res 0]
+ set host [lindex $res 1]
+ set port [lindex $res 2]
+ set ipv6_pid [lindex $res 3]
+ }
}
if {$proxy != ""} {