Skip to content

Commit 3ad7690

Browse files
authored
Update documentation for listening to 0.0.0.0 (fastify#5988)
1 parent 5867a5b commit 3ad7690

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/Guides/Getting-Started.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ above, and more!
128128
>
129129
> When deploying to a Docker (or another type of) container using `0.0.0.0` or
130130
> `::` would be the easiest method for exposing the application.
131+
>
132+
> Note that when using `0.0.0.0`, the address provided in the callback argument
133+
> above will be the first address the wildcard refers to.
131134
132135
### Your first plugin
133136
<a id="first-plugin"></a>

docs/Reference/Server.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,8 @@ server.listen({
973973
By default, the server will listen on the address(es) resolved by `localhost`
974974
when no specific host is provided. If listening on any available interface is
975975
desired, then specifying `0.0.0.0` for the address will listen on all IPv4
976-
addresses. The following table details the possible values for `host` when
976+
addresses. The address argument provided above will then return the first such
977+
IPv4 address. The following table details the possible values for `host` when
977978
targeting `localhost`, and what the result of those values for `host` will be.
978979
979980
Host | IPv4 | IPv6

0 commit comments

Comments
 (0)