requiring socks5 client conditionally from connection constructor