#!/bin/sh # Copyright (C) Juewuy [ "$ts_service" = ON ] && grep -q '"tailscale"' "$CRASHDIR"/jsons/endpoints.json 2>/dev/null && { [ "$ts_subnet" = true ] && { . "$CRASHDIR"/starts/fw_getlanip.sh && getlanip advertise_routes=$(echo "$host_ipv4"|sed 's/[[:space:]]\+/", "/g; s/^/"/; s/$/"/') } [ -z "$ts_exit_node" ] && ts_exit_node=false [ -z "$ts_hostname" ] && ts_hostname='ShellCrash' cat >"$TMPDIR"/jsons/tailscale.json </dev/null && { [ -n "$wg_ipv6" ] && wg_ipv6_add=", \"$wg_ipv6\"" cat >"$TMPDIR"/jsons/wireguard.json <