diff options
author | runge <runge@karlrunge.com> | 2010-04-18 20:37:28 -0400 |
---|---|---|
committer | runge <runge@karlrunge.com> | 2010-04-18 20:37:28 -0400 |
commit | 6de3f0bed722384fe21567c13a76843d64491bf4 (patch) | |
tree | 5d2d1e51c12c9447678f09e9f63d961f986281f6 /x11vnc/misc/enhanced_tightvnc_viewer/bin/util/ssvnc.tcl | |
parent | b74c8f4241ec8c3d972ee97d0ce9a399ddd09ce1 (diff) | |
download | libtdevnc-6de3f0bed722384fe21567c13a76843d64491bf4.tar.gz libtdevnc-6de3f0bed722384fe21567c13a76843d64491bf4.zip |
Sync ssvncviewer changes.
Diffstat (limited to 'x11vnc/misc/enhanced_tightvnc_viewer/bin/util/ssvnc.tcl')
-rwxr-xr-x | x11vnc/misc/enhanced_tightvnc_viewer/bin/util/ssvnc.tcl | 22 |
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 != ""} { |