Closed pinheadmz closed 5 years ago
See: https://github.com/bpanel-org/bpanel/blob/development/server/utils/clients.js#L70
let hostname = config.str('node-host', '127.0.0.1') || config.str('host', '127.0.0.1');
Whether or not node-host is set in config, the left side of this expression will always return a truthy value, meaning host will never actually get tested.
node-host
host
See: https://github.com/bpanel-org/bpanel/blob/development/server/utils/clients.js#L70
Whether or not
node-host
is set in config, the left side of this expression will always return a truthy value, meaninghost
will never actually get tested.