Companion

object Companion

Functions

Link copied to clipboard

Reads a comma-separated list of servers as written, each one a host, a host:port, a bare IPv6 address, or a bracketed IPv6 address with or without a port.

Link copied to clipboard
fun parseList(key: String, text: String, defaultPort: Int): List<ServerAddress>

Reads a comma-separated list of servers, each defaultPort where it states no port of its own.

Link copied to clipboard
fun refuse(key: String, list: String, text: String): Nothing

Refuses text, an entry of list given under key.