[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [flashproxy/master] Always disable on Safari.



commit 48b68ca38541bb5204b04021f48d0e013413d2b0
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Wed Apr 4 23:28:05 2012 -0700

    Always disable on Safari.
    
    Safari only supports the old hixie style of WebSockets. The client
    connector isn't compatible with that style. It should be made
    compatible, but in the meantime this will prevent Safari from poaching
    clients from the facilitator when it can't serve them.
---
 flashproxy.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/flashproxy.js b/flashproxy.js
index b7f339b..235ffbb 100644
--- a/flashproxy.js
+++ b/flashproxy.js
@@ -772,6 +772,9 @@ function flashproxy_should_disable()
             /\bmobile\b/i,
             /\bandroid\b/i,
             /\bopera mobi\b/i,
+            /* Disable on Safari because it doesn't have the hybi/RFC type of
+               WebSockets. */
+            /\bsafari\b/i,
         ];
 
         for (var i = 0; i < UA_LIST.length; i++) {



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits