method

hostname=

hostname=(p1)
public

Sets the server hostname used for SNI. This needs to be set before SSLSocket#connect.