Something went wrong. Try again.
Monorepo for Tangled
Something went wrong. Try again.
1234567891011121314151617181920212223242526#!/bin/shset -eupid_file="$1"; shiftip="$1"; shiftmount="$1"; shiftresolv_conf="$1"; shiftprintf '%s\n' "$$" > "$pid_file"while ! "$ip" link show {{.TapName}} >/dev/null 2>&1; do sleep 0.02done"$mount" --bind "$resolv_conf" /etc/resolv.conf# fail if we can't add a route, ipv6 is skipped if not enabled on hostfor route in{{range .BlockedRoutes}} {{.}}{{end}}; do case "$route" in *:*) [ -d /proc/sys/net/ipv6 ] || continue ;; esac "$ip" route add blackhole "$route"doneexec "$@"