From e538d47bd5f79fe4a61e09a274e6fc69045a08c0 Mon Sep 17 00:00:00 2001 From: Maisem Ali Date: Thu, 14 Oct 2021 18:00:59 -0400 Subject: [PATCH] docs/k8s: update run.sh to use the correct socket path Signed-off-by: Maisem Ali --- docs/k8s/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/k8s/run.sh b/docs/k8s/run.sh index dfe8d4363..f50a86e75 100755 --- a/docs/k8s/run.sh +++ b/docs/k8s/run.sh @@ -53,7 +53,7 @@ tailscale --socket=/tmp/tailscaled.sock up ${UP_ARGS} if [[ ! -z "${DEST_IP}" ]]; then echo "Adding iptables rule for DNAT" - iptables -t nat -I PREROUTING -d "$(tailscale ip -4)" -j DNAT --to-destination "${DEST_IP}" + iptables -t nat -I PREROUTING -d "$(tailscale --socket=/tmp/tailscaled.sock ip -4)" -j DNAT --to-destination "${DEST_IP}" fi -wait ${PID} \ No newline at end of file +wait ${PID}