Remember proxy settings even after switching type

Fixes #649