Set socket family to family of proxy when using proxy.