summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-05-01 18:54:45 +0200
committerPeter Wu <peter@lekensteyn.nl>2014-05-01 18:54:45 +0200
commitd3986ca7d86879b035e539607abc2556d2c78663 (patch)
treed5e58562fb97bc699fc018bd75cb306b36a508a6
parent4fba2f23915a0566b521307de8abe2ee13f4cdad (diff)
downloadTwitterDataAnalytics-d3986ca7d86879b035e539607abc2556d2c78663.tar.gz
run.sh: add helper to disable hostname verification
-rwxr-xr-xrun.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/run.sh b/run.sh
index fbd35e2..e4ff268 100755
--- a/run.sh
+++ b/run.sh
@@ -20,6 +20,11 @@ proxy_options() {
echo -Dhttps.proxyHost=localhost
echo -Dhttps.proxyPort=$proxyport
echo -Djavax.net.ssl.trustStore=$CA
+ # Disable hostname verification
+ premain=tools/DisableSSLHostnameVerify.jar
+ if [ -e "$premain" ]; then
+ echo -javaagent:$premain
+ fi
}
# Exit on errors