1. Markus Tzoe
  2. tsocks

Commits

Markus Tzoe  committed 2a60bd3

patch torsocks.in to support cmdline option

  • Participants
  • Parent commits 2e2ed32
  • Branches torsocks

Comments (0)

Files changed (1)

File src/torsocks.in

View file
  • Ignore whitespace
       echo "$0: Please see torsocks(1) or read comment at top of $0"
    ;;
   *)
+    if [ "x$1" = "x--server" ]; then
+      export TORSOCKS_SERVER="$2"; shift; shift
+    fi
+    if [ "x$1" = "x--port" ]; then
+      export TORSOCKS_SERVER_PORT="$2"; shift; shift
+    fi
+    if [ "x$1" = "x--local" ]; then
+      export TORSOCKS_LOCAL="$2"; shift; shift
+    fi
     if [ -z "$@LDPRELOAD@" ]
     then
       export @LDPRELOAD@="${SHLIB}"