(remote: string | undefined)
| 1 | export function isLoopbackAddress(remote: string | undefined): boolean { |
| 2 | if (!remote) return false; |
| 3 | if (remote === '::1') return true; |
| 4 | if (remote.startsWith('::ffff:127.')) return true; |
| 5 | if (remote.startsWith('127.')) return true; |
| 6 | return false; |
| 7 | } |
| 8 | |
| 9 | export function isAllowedWorkspaceHostHeader(host: string | undefined): boolean { |
| 10 | if (!host) return false; |
no outgoing calls
no test coverage detected