fix toggle proxy on connectivity changed