toggle proxy mode on/off