(value)
| 24 | } |
| 25 | |
| 26 | function _isLoopbackProxyUrl(value) { |
| 27 | const raw = String(value || '').trim(); |
| 28 | if (!raw) return false; |
| 29 | try { |
| 30 | const u = new URL(raw); |
| 31 | const host = u.hostname.toLowerCase(); |
| 32 | return u.protocol === 'http:' && (host === '127.0.0.1' || host === 'localhost' || host === '::1' || host === '[::1]'); |
| 33 | } catch (_) { |
| 34 | return false; |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | function _stripTomlComment(line) { |
| 39 | let out = ''; |
no outgoing calls
no test coverage detected