Here you are detecting if we're using unix sockets by detecting the `af_unix` option.
Shouldn't you be detecting the `socketPath` option, which is standard?
http://nodejs.org/api/http.html#http_http_request_options_callback