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:
Yoshiya Hinosawa 2021-09-07 16:26:21 +09:00 committed by GitHub
parent d331c4b283
commit 3925435bf9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}