ServerListenOptions

class ServerListenOptions

Options to pass to listen, etc.

IPV4_ONLY and IPV6_ONLY only make sense with listen_all and listen_local, not plain listen (which simply listens on whatever kind of socket you give it). And you cannot specify both of them in a single call.

Fields

class ServerListenOptions
HTTPS

Listen for https connections rather than plain http.

IPV4_ONLY

Only listen on IPv4 interfaces.

IPV6_ONLY

Only listen on IPv6 interfaces.