(lock: LockContents)
| 81 | } |
| 82 | |
| 83 | export function lockConnectHost(lock: LockContents): string { |
| 84 | const host = lock.host ?? LOCAL_SERVER_HOST; |
| 85 | return host === '0.0.0.0' ? LOCAL_SERVER_HOST : host; |
| 86 | } |
| 87 | |
| 88 | /** True when `host:port` is currently free to bind (nothing listening). */ |
| 89 | function canBind(host: string, port: number): Promise<boolean> { |
no outgoing calls
no test coverage detected