Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyenought committed Sep 26, 2023
1 parent 9c1b622 commit 2c30e83
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion etcd/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,11 @@ func main() {
}
}
```
## How to Dynamically specify ip and port

To dynamically specify an IP and port, one should first set the environment variables `HERTZ_IP_TO_REGISTRY` and `HERTZ_PORT_TO_REGISTRY`. If these variables are not set, the system defaults to using the service's listening IP and port. Notably, if the service's listening IP is either not set or set to "::", the system will automatically retrieve and use the machine's IPV4 address.

## Compatibility

Compatible with server (3.0.0 - 3.5.4)
etcd-clientv3 [see](https://github.com/etcd-io/etcd/tree/main/client/v3)
etcd-clientv3 [see](https://github.com/etcd-io/etcd/tree/main/client/v3)

0 comments on commit 2c30e83

Please sign in to comment.