[tor-commits] [flashproxy/master] Add debug puts to show why the proxy is disabling itself.
dcf at torproject.org
dcf at torproject.org
Tue Jul 17 12:46:53 UTC 2012
commit 34ec1b386219d7a6da730ca0359049070897f4fe
Author: David Fifield <david at bamsoftware.com>
Date: Tue Jul 17 05:42:00 2012 -0700
Add debug puts to show why the proxy is disabling itself.
---
flashproxy.js | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/flashproxy.js b/flashproxy.js
index 8f994f1..592074d 100644
--- a/flashproxy.js
+++ b/flashproxy.js
@@ -790,19 +790,24 @@ function flashproxy_should_disable() {
var re = UA_LIST[i];
if (ua.match(re)) {
+ puts("Disable because User-Agent matches mobile pattern " + re + ".");
return true;
}
}
}
- if (ua.match(/\bsafari\b/i) && !ua.match(/\bchrome\b/i))
+ if (ua.match(/\bsafari\b/i) && !ua.match(/\bchrome\b/i)) {
/* Disable on Safari because it doesn't have the hybi/RFC type of
WebSockets. */
+ puts("Disable because User-Agent is Safari.");
return true;
+ }
- if (!WebSocket)
+ if (!WebSocket) {
/* No WebSocket support. */
+ puts("Disable because of no WebSocket support.");
return true;
+ }
return false;
}
More information about the tor-commits
mailing list