From 388ad7249243afe17ffdf77c861dbac66f0db97a Mon Sep 17 00:00:00 2001 From: itdoginfo Date: Fri, 12 Jan 2024 13:33:19 +0300 Subject: [PATCH] Some fixes --- getdomains-install.sh | 6 +++--- templates/openwrt-30-rknroute.j2 | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/getdomains-install.sh b/getdomains-install.sh index 2f8da95..36e8693 100755 --- a/getdomains-install.sh +++ b/getdomains-install.sh @@ -18,7 +18,7 @@ EOF cat << EOF > /etc/hotplug.d/iface/30-rknroute #!/bin/sh -sleep 5 +sleep 10 ip route add table vpn default dev tun0 EOF fi @@ -107,9 +107,9 @@ add_tunnel() { read -r -p "Enter the public key (from [Peer]):"$'\n' WG_PUBLIC_KEY read -r -p "If use PresharedKey, Enter this (from [Peer]). If your don't use leave blank:"$'\n' WG_PRESHARED_KEY - read -r -p "Enter Enpoint host without port (Domain or IP) (from [Peer]):"$'\n' WG_ENDPOINT + read -r -p "Enter Endpoint host without port (Domain or IP) (from [Peer]):"$'\n' WG_ENDPOINT - read -r -p "Enter Enpoint host port (from [Peer]) [51820]:"$'\n' WG_ENDPOINT_PORT + read -r -p "Enter Endpoint host port (from [Peer]) [51820]:"$'\n' WG_ENDPOINT_PORT WG_ENDPOINT_PORT=${WG_ENDPOINT_PORT:-51820} if [ "$WG_ENDPOINT_PORT" = '51820' ]; then echo $WG_ENDPOINT_PORT diff --git a/templates/openwrt-30-rknroute.j2 b/templates/openwrt-30-rknroute.j2 index c62ff50..5f17acd 100644 --- a/templates/openwrt-30-rknroute.j2 +++ b/templates/openwrt-30-rknroute.j2 @@ -3,6 +3,6 @@ {% if tunnel == "wg" %} ip route add table vpn default dev wg0 {% elif (tunnel == "openvpn") or (tunnel == "singbox") or (tunnel == "tun2socks") %} -sleep 5 +sleep 10 ip route add table vpn default dev tun0 {% endif %}