(self: InetAddress)
| 2112 | * @since 4.0.0 |
| 2113 | */ |
| 2114 | export const formatInet = (self: InetAddress): string => { |
| 2115 | const host = formatHost(self) |
| 2116 | return isInetAddressV4(self) ? `${host}:${self.port}` : `[${host}]:${self.port}` |
| 2117 | } |
| 2118 | |
| 2119 | /** |
| 2120 | * Formats an IP address for use as a URL authority host. |
no test coverage detected