Skip to content

Conversation

@tarwich
Copy link

@tarwich tarwich commented Sep 20, 2022

Some of our nodes have hostnames determined at runtime and cannot be placed in the .env. We also can't update process.env.DISCOVERY_HOSTNAME, because the variable is captured on import instead of on instantiation. This small change allows the hostname to be determined by the consumer of the library.

Some of our nodes have hostnames determined at runtime and cannot be placed in the .env. We also can't update process.env.DISCOVERY_HOSTNAME, because the variable is captured [on import](https://github.com/dashersw/node-discover/blob/master/lib/network.js#L11) instead of on instantiation. This small change allows the hostname to be determined by the consumer of the library.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant