This repository was archived by the owner on Jan 24, 2024. It is now read-only.
Weekly build 20200524
fix advertised address config issue (#154)
In Pulsar standalone mode, If advertisedAddress not set, it is hard coded as "localhost":
```
if (this.getAdvertisedAddress() != null) {
// Use advertised address from command line
config.setAdvertisedAddress(this.getAdvertisedAddress());
zkServers = this.getAdvertisedAddress();
} else if (isBlank(config.getAdvertisedAddress())) {
// Use advertised address as local hostname
config.setAdvertisedAddress("localhost");
} else {
// Use advertised address from config file
}
```
And in KoP, if host address not set in listeners, it will use advertised address to do the config.
Then the value read from conf.properties is outdated. This PR update it with right value.