Postgres module

looks_like_address

procedure · 1 overloadsince 0.27.0Source

Whether host is written as an address (only digits and dots, or with a colon), which libpq never sends as SNI.

looks_like_address :: (host: string) -> bool

Whether host is written as an address (only digits and dots, or with a colon), which libpq never sends as SNI.

Parameters

host: string
the host as configured.

Returns

bool

See also