Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct hostname param default value instructions #28

Merged
merged 1 commit into from
Jul 27, 2017

Conversation

CodeBaboon
Copy link
Contributor

In my experience localhost is often not the default hostname but rather the machine name is. Looking at the code it seems that when an argument isn't provided the value defaults to nodes os.hostname value:

var hostname = opts.hostname || os.hostname();

The node docs indicate that os.hostname "returns the hostname of the operating system as a string.": https://nodejs.org/api/os.html#os_os_hostname

Perhaps this has changed in more recent versions of node but it seems worthwhile to update the docs here to reflect this.

In my experience `localhost` is often not the default hostname but rather the machine name is. Looking at the code it seems that when an argument isn't provided the value defaults to nodes os.hostname value: https://github.com/Brightspace/frau-local-appresolver/blob/57928f7c0311df33f20ac9a3520114ac3424b82a/lib/appresolver.js#L8

The node docs indicate that `os.hostname` "returns the hostname of the operating system as a string.": https://nodejs.org/api/os.html#os_os_hostname

Perhaps this has changed in more recent versions of node but it seems worthwhile to update the docs here to reflect this.
@jstefaniuk-d2l
Copy link

Looks like this addresses this issue: #9

@coveralls
Copy link

Coverage Status

Coverage remained the same at 85.714% when pulling ea0a2fc on CodeBaboon:patch-1 into 57928f7 on Brightspace:master.

@CodeBaboon
Copy link
Contributor Author

Anyone with permissions to this repo care to merge this?

@dlockhart
Copy link
Member

@CodeBaboon sorry didn't have notifications turned on! Merging.

@dlockhart dlockhart merged commit 27cf00d into Brightspace:master Jul 27, 2017
@CodeBaboon CodeBaboon deleted the patch-1 branch July 28, 2017 13:08
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.

4 participants