()
| 285 | Object.defineProperties(fastify, { |
| 286 | listeningOrigin: { |
| 287 | get () { |
| 288 | const address = this.addresses().slice(-1).pop() |
| 289 | /* ignore if windows: unix socket is not testable on Windows platform */ |
| 290 | /* c8 ignore next 3 */ |
| 291 | if (typeof address === 'string') { |
| 292 | return address |
| 293 | } |
| 294 | const host = address.family === 'IPv6' ? `[${address.address}]` : address.address |
| 295 | return `${this[kOptions].https ? 'https' : 'http'}://${host}:${address.port}` |
| 296 | } |
| 297 | }, |
| 298 | pluginName: { |
| 299 | configurable: true, |
nothing calls this directly
no test coverage detected