fix problem connecting remote socks server