init-proxy.sh 234 B

123456
  1. dir="$(dirname "$0")"
  2. config=$dir/proxychains.conf
  3. host_ip=$(grep nameserver /etc/resolv.conf | sed 's/nameserver //')
  4. echo "proxying to $host_ip"
  5. cp $dir/proxychains.template.conf $config
  6. sed -i "\$s/.*/http $host_ip 7890/" $config