summarylogtreecommitdiffstats
path: root/socks-relay.service
diff options
context:
space:
mode:
Diffstat (limited to 'socks-relay.service')
-rw-r--r--socks-relay.service8
1 files changed, 4 insertions, 4 deletions
diff --git a/socks-relay.service b/socks-relay.service
index 49dc53043eb0..6965b40e41c5 100644
--- a/socks-relay.service
+++ b/socks-relay.service
@@ -1,13 +1,13 @@
-[Unit]
+[Unit]
Description=Simple socks5 server and relay
After=network.target
-[Service]
+[Service]
Type=simple
DynamicUser=true
EnvironmentFile=/etc/default/socks-relay
-ExecStart=/usr/bin/socks-relay localhost:8999
+ExecStart=/usr/bin/socks-relay $SOCKS_RELAY_HOST:$SOCKS_RELAY_PORT
Restart=always
RestartSec=10s
@@ -31,5 +31,5 @@ RestrictAddressFamilies=AF_INET AF_INET6
LockPersonality=true
RestrictRealtime=true
-[Install]
+[Install]
WantedBy=multi-user.target \ No newline at end of file