Created
November 17, 2020 20:21
-
-
Save nficano/708b82514f5c1fb8b14f5fd81eeda528 to your computer and use it in GitHub Desktop.
spotify
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
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