Only set proxy settings, if available.