mirror of
https://github.com/PirateBox-Dev/PirateBoxScripts_Webserver.git
synced 2023-12-14 07:22:58 +01:00
Resolve IPv6 domain names via CLI for ftp sync client
This commit is contained in:
parent
22d4e80103
commit
c8684255ff
|
@ -15,7 +15,7 @@ resolve_node_hostname() {
|
|||
|
||||
local AVAHI_HOST=$( echo $in_nodename | sed 's|\.|_|g' )
|
||||
local bonjour_hostname="$AVAHI_HOST"".local"
|
||||
local output=$( avahi-resolve-host-name $bonjour_hostname )
|
||||
local output=$( avahi-resolve-host-name -6 $bonjour_hostname )
|
||||
|
||||
if [ ! -z "$output" ] ; then
|
||||
echo "Found host: $output"
|
||||
|
|
Loading…
Reference in a new issue