Posted to tcl by patthoyts at Sun Nov 15 10:44:01 GMT 2009view raw

  1. pat@badger:/opt/wub% svn diff
  2. Index: Wub/Listener.tcl
  3. ===================================================================
  4. --- Wub/Listener.tcl (revision 2012)
  5. +++ Wub/Listener.tcl (working copy)
  6. @@ -73,6 +73,9 @@
  7. Debug.listener {accepted: $sock $ipaddr $rport}
  8.  
  9. if {[catch {
  10. + if {[dict exists $opts -tls]} {
  11. + tls::handshake $sock
  12. + }
  13. # select an Http object to handle incoming
  14. {*}[dict get $opts -httpd] Connect $sock $ipaddr $rport {*}$opts
  15. } result eo]} {