mirror of
https://github.com/denoland/deno.git
synced 2024-12-25 16:49:18 -05:00
docs(ext/net): add note about listening 0.0.0.0 (#11938)
Co-authored-by: Craig Morten <cmorten@users.noreply.github.com>
This commit is contained in:
parent
d331c4b283
commit
3925435bf9
1 changed files with 6 additions and 1 deletions
7
ext/net/lib.deno_net.d.ts
vendored
7
ext/net/lib.deno_net.d.ts
vendored
|
@ -49,7 +49,12 @@ declare namespace Deno {
|
|||
/** The port to listen on. */
|
||||
port: number;
|
||||
/** A literal IP address or host name that can be resolved to an IP address.
|
||||
* If not specified, defaults to `0.0.0.0`. */
|
||||
* If not specified, defaults to `0.0.0.0`.
|
||||
*
|
||||
* __Note about `0.0.0.0`__ While listening `0.0.0.0` works on all platforms,
|
||||
* the browsers on Windows don't work with the address `0.0.0.0`.
|
||||
* You should show the message like `server running on localhost:8080` instead of
|
||||
* `server running on 0.0.0.0:8080` if your program supports Windows. */
|
||||
hostname?: string;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue