Fix followPort option (#394)
* Fix `followPort` option * Use correct default
This commit is contained in:
parent
8507286895
commit
32e0c66997
1 changed files with 2 additions and 2 deletions
|
|
@ -20,8 +20,8 @@ function createClient (options) {
|
|||
const adVersion = ad.version?.split('.').slice(0, 3).join('.') // Only 3 version units
|
||||
client.options.version = options.version ?? (Options.Versions[adVersion] ? adVersion : Options.CURRENT_VERSION)
|
||||
|
||||
if (ad.port && options.followPort) {
|
||||
client.options.port = ad.port
|
||||
if (ad.portV4 && client.options.followPort) {
|
||||
client.options.port = ad.portV4
|
||||
}
|
||||
|
||||
client.conLog?.(`Connecting to ${client.options.host}:${client.options.port} ${ad.motd} (${ad.levelName}), version ${ad.version} ${client.options.version !== ad.version ? ` (as ${client.options.version})` : ''}`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue