(hostname: string)
| 227 | }); |
| 228 | |
| 229 | const toProbeHost = (hostname: string): string => { |
| 230 | const normalized = hostname.trim().toLowerCase(); |
| 231 | if (normalized === "localhost" || normalized === "0.0.0.0") { |
| 232 | return "127.0.0.1"; |
| 233 | } |
| 234 | return hostname; |
| 235 | }; |
| 236 | |
| 237 | const isPortAvailable = (input: { |
| 238 | hostname: string; |
no outgoing calls
no test coverage detected