diff --git a/qbittorrent/rootfs/usr/local/sbin/vpn b/qbittorrent/rootfs/usr/local/sbin/vpn index 02a2718be..72692c07f 100755 --- a/qbittorrent/rootfs/usr/local/sbin/vpn +++ b/qbittorrent/rootfs/usr/local/sbin/vpn @@ -33,7 +33,7 @@ _parse_dns() { local -a dns_backup_ipv6=("2001:4860:4860::8888" "2606:4700:4700::1111") local dns_servers=$(bashio::config 'DNS_server') - mapfile -d ',' -t dns_conf < <(echo "${dns_servers}" | tr -d ' ') + mapfile -d ',' -t dns_conf < <(echo "${dns_servers}" | tr -d ' ' | tr -d '\n') if [ ${config["IPv4Enabled"]} = "true" ]; then for dns_ip in "${dns_conf[@]}"; do local result=0