Skip to content

Instantly share code, notes, and snippets.

@nficano
Created November 17, 2020 20:21
Show Gist options
  • Save nficano/708b82514f5c1fb8b14f5fd81eeda528 to your computer and use it in GitHub Desktop.
Save nficano/708b82514f5c1fb8b14f5fd81eeda528 to your computer and use it in GitHub Desktop.
spotify
interface=$(networksetup -listnetworkserviceorder | grep "Hardware Port: Wi-Fi" | grep -o -E "en[0-9]")
for ip in "78.31.8.0/24" "78.31.12.0/24" "193.182.8.0/24" "193.235.0.0/16" "193.182.0.0/16" "194.68.0.0/16" "193.235.232.103"; do
sudo route delete $ip 2 &>1 >/dev/null
sudo route -n add $ip -interface $interface >/dev/null
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment