Created
January 13, 2022 17:34
-
-
Save breiter/ba013fd9ecdf5952e543999c62aa9820 to your computer and use it in GitHub Desktop.
reset macOS ipv6 stack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#newline field separator | |
IFS=' | |
' | |
adapters=$(networksetup -listallnetworkservices | grep -v '*') | |
echo "setv6off" >&2 | |
for a in $adapters; do | |
networksetup -setv6off "$a" | |
done | |
sleep 1 | |
echo "setv6automatic" | |
for a in $adapters; do | |
networksetup -setv6automatic "$a" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This fixes airplay from macOS 12 to Homepod when it fails to connect without rebooting.