0
0
mirror of https://github.com/tj/n.git synced 2024-11-22 11:37:26 +01:00
n/test/bin/proxy-run
2019-05-04 19:45:53 +12:00

13 lines
412 B
Bash
Executable File

#!/usr/bin/env bash
BIN_DIRECTORY="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
echo ""
echo "To make use of proxy server:"
echo " export https_proxy=\"$(hostname):8080\""
echo " export http_proxy=\"$(hostname):8080\""
echo " export CURL_HOME=$(dirname "${BIN_DIRECTORY}")/config"
echo ""
echo "Launching proxy server..."
mitmdump --server-replay-nopop --server-replay proxy~~.dump