Skip to content

Commit

Permalink
only target ipv4
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Oct 17, 2024
1 parent 9b0720c commit 71ed648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workspace/scripts/files/bash/avahi_aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ publish_mdns() {

# Get all IP addresses, ignoring localhost
while :; do
IP_ADDRESSES=$(hostname -I | tr ' ' '\n' | grep -v '^127\.')
IP_ADDRESSES=$(hostname -I | grep -Eo '([0-9]*\.){3}[0-9]*' | tr '\n' '\n')

if [ -n "$IP_ADDRESSES" ]; then
break
Expand Down

0 comments on commit 71ed648

Please sign in to comment.