setcfg rtorrent bind_interface_public_ipv4_addr \$(\
curl -sL --connect-timeout 2 --interface \\\", (cfg.interface.bind), \\\" http://ipinfo.io/ip || \
curl -sL --connect-timeout 2 --interface \\\", (cfg.interface.bind), \\\" http://obj.qnapclub.pl/app/net/ip.php || \
curl -sL --connect-timeout 5 --interface \\\", (cfg.interface.bind), \\\" http://icanhazip.com || \
curl -sL --connect-timeout 5 --interface \\\", (cfg.interface.bind), \\\" http://ipinfo.io/ip || \
curl -sL --connect-timeout 10 --interface \\\", (cfg.interface.bind), \\\" http://obj.qnapclub.pl/app/net/ip.php || \
curl -sL --connect-timeout 10 --interface \\\", (cfg.interface.bind), \\\" http://ifconfig.co || \
echo -n 127.0.0.1) -f /etc/config/qpkg.conf \
&& echo -n $(getcfg rtorrent bind_interface_public_ipv4_addr -f /etc/config/qpkg.conf)\\\