Skip to content

Instantly share code, notes, and snippets.

@mipmip
Created February 16, 2012 12:02
Show Gist options
  • Select an option

  • Save mipmip/1844362 to your computer and use it in GitHub Desktop.

Select an option

Save mipmip/1844362 to your computer and use it in GitHub Desktop.
OSX: disable ipv6
#!/bin/sh
IFS=$'\n'
net=`networksetup -listallnetworkservices | grep -v asterisk`
for i in $net
do
networksetup -setv6off "$i"
done
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment