life is good

This commit is contained in:
Bel LaPointe
2018-10-06 14:54:42 -06:00
parent 0ff6597b47
commit 7c9d42439e
10 changed files with 255 additions and 163 deletions

26
test.sh
View File

@@ -1,7 +1,23 @@
curl \
#! /bin/bash
addr="${1:-${addr:-"https://blapointe.me"}}"
pport="${2:-${pport:-2018}}"
if ((pport==2018)); then
prox="${3:-${prox:-https://localhost}}"
else
prox="${3:-${prox:-http://localhost}}"
fi
if [ "$badcert" ]; then
client="--proxy-key ./badstunclient.key --proxy-cert ./badstunclient.crt"
elif [ -z "$nocert" ]; then
client="--proxy-key ./stunclient.key --proxy-cert ./stunclient.crt"
fi
curl \ #-v \
--proxy-cacert ./stunserver.crt \
--proxy-key ./stunclient.key \
--proxy-cert ./stunclient.crt \
$client \
-U breel:ok \
-x https://localhost:2018 \
https://blapointe.me
-x $prox:$pport \
$addr