Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the ip_port() definition and bind print format #9047

Merged
merged 9 commits into from
Sep 29, 2022

Conversation

HJianBo
Copy link
Member

@HJianBo HJianBo commented Sep 26, 2022

In the #8571, we add a colon before the port.

In this PR, we add some comments to explain how we made this decision. And get the following improvements.

  • If it configured as 0.0.0.0:1883 and :::1883
    • both are formatted as :1883 before
    • now it is formatted as 0.0.0.0:1883 and [::]:1883
  • Don't add ipv4 address automatically in emqx_schema:to_ip_port/1

In the emqx#8571, we add a colon before the
port. But it was not popular, so we removed ta in this PR
zmstone
zmstone previously approved these changes Sep 26, 2022
@HJianBo HJianBo requested review from zmstone and a team September 27, 2022 05:08
zmstone
zmstone previously approved these changes Sep 27, 2022
Rory-Z
Rory-Z previously approved these changes Sep 27, 2022
@HJianBo HJianBo changed the title chore: remove colon port in HTTP-API and CLI Improve the ip_port() definition and bind print format Sep 27, 2022
@HJianBo HJianBo requested review from zmstone, Rory-Z and a team September 28, 2022 09:33
@zmstone zmstone merged commit 242a693 into emqx:master Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants