feat: add query port to the results (#476)

This commit is contained in:
CosminPerRam 2024-01-17 00:20:56 +02:00 committed by GitHub
parent 2ffff5e7d6
commit ec708d7219
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 0 deletions

View file

@ -78,6 +78,7 @@ export default class Core extends EventEmitter {
const state = new Results()
await this.run(state)
state.queryPort = options.port
// because lots of servers prefix with spaces to try to appear first
state.name = (state.name || '').trim()