aboutsummaryrefslogtreecommitdiff
path: root/syncthing-tor
blob: 04a5f9280ca9aab1551c7f7de366d1c60b67914f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
#
# Simple syncthing Tor wrapper
#

# See https://docs.syncthing.net/users/proxying.html
if which syncthing 2> /dev/null; then
  export all_proxy=socks5://127.0.0.1:9050
  syncthing
else
  echo "error: syncthing not installed"
  exit 1
fi