Closed Calvin979 closed 3 weeks ago
hi thanks lgtm !👍👍 Suggest we can combine the ip
and public ip
into one ip
.
When user custom config the collector ip
like below, we use the custom ip, else we use the ip we detect by program like before.
collector:
info:
version: 1.5.0
ip: 38.44.3.5
hi thanks lgtm !👍👍 Suggest we can combine the
ip
andpublic ip
into oneip
. When user custom config the collectorip
like below, we use the custom ip, else we use the ip we detect by program like before.collector: info: version: 1.5.0 ip: 38.44.3.5
Code has been updated by your suggestion.
What's changed?
Relate issue: #1549![image](https://github.com/apache/hertzbeat/assets/131688897/c181ea96-a5a5-4c0e-8883-22d0e7e01f2a)
Seems it is difficult to get public ip in Java directly, therefore I add a configuration![image](https://github.com/apache/hertzbeat/assets/131688897/be21b54c-9575-4b61-bee9-d9a166a5e48c)
public-ip-env
for getting public ip from environment.Checklist
Add or update API