Address6.isLoopback

Loopback address is ::1.

struct Address6
const @nogc nothrow pure @safe
bool
isLoopback
()

Return Value

Type: bool

$(D_KEYWORD true) if this is a loopback address, $(D_KEYWORD false) otherwise.

Examples

assert(address6("::1").get.isLoopback());

Meta