port whonixcheck script to using Tor unix domain socket socks file

Information

ID: 548
PHID: PHID-TASK-dbbws6u5qfwsaxuyfazu
Author: Patrick
Status at Migration Time: resolved
Priority at Migration Time: Normal

Description

https://github.com/Whonix/whonixcheck/blob/master/usr/lib/whonixcheck/check_tor_socks_port_reachability.bsh

Requires newer curl with --unix-socket from #debian_stretch.

Replace

   $CURL \
      --fail \
      $CURL_VERBOSE \
      --max-time 10 \
      --output "$TEMP_DIR/socks_port_open_file" \
      "$GATEWAY_IP:$SOCKS_PORT_WHONIXCHECK" \
      &

with

   $CURL \
      --fail \
      $CURL_VERBOSE \
      --max-time 10 \
      --output "$TEMP_DIR/socks_port_open_file" \
      --unix-socket "/var/run/tor/socks" \
      "file//var/run/tor/socks" \
      &

Comments


Patrick

2017-01-18 10:02:59 UTC