Reconfigure the proxy when needed