A simple network aware proxy switcher