(host: string, port: number)
| 47 | } |
| 48 | |
| 49 | function hostOrigin(host: string, port: number): string { |
| 50 | const family = host.includes(':') ? 'IPv6' : 'IPv4'; |
| 51 | return `http://${formatHostForUrl(host, family)}:${port}`; |
| 52 | } |
| 53 | |
| 54 | /** |
| 55 | * Compute the access-URL lines for a bind host/port. |
no test coverage detected