Home Contents | # ssl:setHostName | Cipher/SSL | Core4 Lua Commands

## SYNOPSIS

1. ssl:setHostName(name)
2. name = ssl:getHostName()

## DESCRIPTION

Note: Only few actual servers support the ServerName feature. It is currently untested in the Core4 implementation.

When connecting to a server, it is possible to tell the server what name the client expects the server to have. This allows running multiple virtual servers on a single IP address.

Set the expected server name with ssl:setHostName(), query with ssl:getHostName().

This setting is only used if the connection mode is client.

## SEE ALSO

cipher.ssl()