Rephrase bind docs (#6394)

pull/6395/head
Freddy 2019-08-26 11:31:55 -06:00 committed by GitHub
parent 000ca15db7
commit 4caf1d111a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 9 deletions

View File

@ -88,15 +88,16 @@ The options below are all specified on the command-line.
for internal cluster communications. for internal cluster communications.
This is an IP address that should be reachable by all other nodes in the cluster. This is an IP address that should be reachable by all other nodes in the cluster.
By default, this is "0.0.0.0", meaning Consul will bind to all addresses on By default, this is "0.0.0.0", meaning Consul will bind to all addresses on
the local machine and will [advertise](/docs/agent/options.html#_advertise) the local machine and will [advertise](/docs/agent/options.html#_advertise)
the first available private IPv4 address to the rest of the cluster. If there the private IPv4 address to the rest of the cluster. If there
are **multiple private IPv4 addresses** available, Consul will exit with an error are multiple private IPv4 addresses available, Consul will exit with an error
at startup. If you specify "[::]", Consul will at startup. If you specify "[::]", Consul will [advertise](/docs/agent/options.html#_advertise)
[advertise](/docs/agent/options.html#_advertise) the first available public the public IPv6 address.
IPv6 address. If there are **multiple public IPv6 addresses** available, Consul If there are multiple public IPv6 addresses available, Consul will exit with an error at startup.
will exit with an error at startup. Consul uses both TCP and UDP and the same port for both. If you have any firewalls,
Consul uses both TCP and UDP and the same port for both. If you be sure to allow both protocols. In Consul 1.0 and later this can be set to a
have any firewalls, be sure to allow both protocols. **In Consul 1.0 and later this can be set to a [go-sockaddr](https://godoc.org/github.com/hashicorp/go-sockaddr/template) template that needs to resolve to a single address.** Some example templates: [go-sockaddr](https://godoc.org/github.com/hashicorp/go-sockaddr/template)
template that needs to resolve to a single address. Some example templates:
```sh ```sh
# Using address within a specific CIDR # Using address within a specific CIDR