add advanced setting for curl proxy type, so we can support socks4/4a/5 proxy

I'm not sure whether it should be a gui setting, but it can be an advanced setting, so here's the simple code to support socks proxy by add a network.curlproxytype advanced setting