mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-11 05:56:55 +03:00
refactor: move add tunnel to function
This commit is contained in:
@@ -25,6 +25,7 @@ else
|
||||
[ -f /etc/config/dhcp-opkg ] && cp /etc/config/dhcp /etc/config/dhcp-old && mv /etc/config/dhcp-opkg /etc/config/dhcp
|
||||
fi
|
||||
|
||||
add_tunnel() {
|
||||
echo "What type of VPN or proxy will be used?"
|
||||
echo "1) VLESS, Shadowsocks (A sing-box will be installed)"
|
||||
echo "2) Wireguard"
|
||||
@@ -93,6 +94,9 @@ while true; do
|
||||
;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
add_tunnel
|
||||
|
||||
echo "Installed podkop..."
|
||||
opkg install $DOWNLOAD_DIR/podkop*.ipk
|
||||
|
||||
Reference in New Issue
Block a user