Unverified Commit ebe7bb29 authored by XadillaX's avatar XadillaX Committed by Anna Henningsen
Browse files

dns: make `dns.setServers` support customized port

allow `dns.setServers` parameter to contain port

e.g.

```
dns.setServers([ '103.238.225.181:666' ]);
```

And `dns.getServers` will return IP with port if not the default port.

PR-URL: https://github.com/nodejs/node/pull/13723
Refs: https://github.com/nodejs/node/issues/7903


Reviewed-By: default avatarRefael Ackermann <refack@gmail.com>
Reviewed-By: default avatarMatteo Collina <matteo.collina@gmail.com>
parent 683f743e
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment