Browse Source

doc: change logical to bitwise OR in dns lookup

The `hints` value will be a number. To specify more than one hints,
their corresponding bits have to be set. So bitwise OR should be used
instead of logical OR.

PR-URL: https://github.com/nodejs/node/pull/11037

Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
v6.x
Sakthipriyan Vairamani (thefourtheye) 8 years ago
committed by Myles Borins
parent
commit
055f666065
No known key found for this signature in database GPG Key ID: 933B01F40B5CA946
  1. 2
      doc/api/dns.md

2
doc/api/dns.md

@ -77,7 +77,7 @@ Alternatively, `options` can be an object containing these properties:
`4` or `6`. If not provided, both IP v4 and v6 addresses are accepted. `4` or `6`. If not provided, both IP v4 and v6 addresses are accepted.
* `hints`: {Number} - If present, it should be one or more of the supported * `hints`: {Number} - If present, it should be one or more of the supported
`getaddrinfo` flags. If `hints` is not provided, then no flags are passed to `getaddrinfo` flags. If `hints` is not provided, then no flags are passed to
`getaddrinfo`. Multiple flags can be passed through `hints` by logically `getaddrinfo`. Multiple flags can be passed through `hints` by bitwise
`OR`ing their values. `OR`ing their values.
See [supported `getaddrinfo` flags][] for more information on supported See [supported `getaddrinfo` flags][] for more information on supported
flags. flags.

Loading…
Cancel
Save