From 8c5171b02732e63f295dee773b84559a1b04b831 Mon Sep 17 00:00:00 2001 From: litinoveweedle <15144712+litinoveweedle@users.noreply.github.com> Date: Tue, 3 Feb 2026 21:09:17 +0100 Subject: [PATCH] removed host dependency --- qbittorrent/rootfs/usr/local/sbin/vpn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qbittorrent/rootfs/usr/local/sbin/vpn b/qbittorrent/rootfs/usr/local/sbin/vpn index 7edb0eb05..c16e39b5e 100755 --- a/qbittorrent/rootfs/usr/local/sbin/vpn +++ b/qbittorrent/rootfs/usr/local/sbin/vpn @@ -72,7 +72,7 @@ _is_ip_address() { return 1 # IPv4 elif [ "$1" != "${1#*:[0-9a-fA-F]}" ]; then return 2 # IPv6 - elif host "$1" >/dev/null 2>&1; then + elif getent ahosts "$1" >/dev/null 2>&1; then return 3 # resolvable hostname else return 0 # neither IP nor resolvable hostname