aerospike / aerospike-client-go

Aerospike Client Go
Apache License 2.0
433 stars 199 forks source link

Add option that custom dial function for creating tcp connections #292

Closed kazukousen closed 4 years ago

kazukousen commented 4 years ago

this PR is adds support for customizable dial function.

e.g. over SSH

sshClient, err := ssh.Dial("tcp", fmt.Sprintf("%s:%d", host, 22), sshConfig)
policy := aerospike.NewClientPolicy()
policy.Dial = sshClient.Dial
khaf commented 4 years ago

May I ask why this is needed while the server itself supports TLS connections?

kazukousen commented 4 years ago

thank you for your reply. It is not the purpose of the server itself to support TLS connections. it is for performing tasks such as multi-stage SSH connection from a laptop.