Skip to content

Function: isTunnelHost()

isTunnelHost(req, publicDomain): boolean

True when the request’s Host is one of the tunnel’s public domains - i.e. it came in over Portr or FRP. Case-insensitive; the optional :port is ignored. When no public domain is configured, nothing is tunnel traffic.

IncomingMessage

string | readonly string[] | undefined

boolean