Fix apt proxy switching in switch_net.sh