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

allow ignoring host validation to be IP or localhost #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zsoldosp
Copy link

fixes #2

instead of trying to verify/parse all the possible
available domain name formats (which now include more
than just ascii chars), this approach allows the calling
client to explicitly disable host/ip verification.

This change is backwards compatible, relying on a new, optional
argument.

fixes opentsdb-js#2

instead of trying to verify/parse all the possible
available domain name formats (which now include more
than just ascii chars), this approach allows the calling
client to explicitly disable host/ip verification.

This change is backwards compatible, relying on a new, optional
argument.
@zsoldosp
Copy link
Author

@kgryte the travis build failed due to some dependency issues, and I am not familiar enough with he nested dependencies concept to know how to fix it....

/home/travis/build/opentsdb-js/client/node_modules/request/node_modules/hawk/node_modules/boom/lib/index.js:5
const Hoek = require('hoek');
^^^^^
SyntaxError: Use of const in strict mode.
 at Module._compile (module.js:439:25)
 at Object.Module._extensions..js (module.js:474:10)

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.

can't use hostname when set client.host()
1 participant