(options: Pick<ServeCliOptions, 'host' | 'publicBind'>)
| 96 | } |
| 97 | |
| 98 | export function normalizeServeHost(options: Pick<ServeCliOptions, 'host' | 'publicBind'>): string | null { |
| 99 | return options.host ?? (options.publicBind ? '0.0.0.0' : null); |
| 100 | } |
| 101 | |
| 102 | export function isLoopbackHost(value: string | null): boolean { |
| 103 | const normalized = String(value ?? '').trim().toLowerCase(); |
no outgoing calls
no test coverage detected