life is good
This commit is contained in:
26
test.sh
26
test.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user