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

NAS-128845 / 24.10 / Do not render all IPv4 addresses in Web UI URLs list if :: is in the listen address list, but 0.0.0.0 is not #14154

Merged
merged 3 commits into from
Aug 8, 2024

Conversation

themylogin
Copy link
Contributor

No description provided.

@themylogin themylogin requested a review from a team August 7, 2024 07:24
@themylogin themylogin changed the title o not render all IPv4 addresses in Web UI URLs list if :: is in the listen address list, but 0.0.0.0 is not Do not render all IPv4 addresses in Web UI URLs list if :: is in the listen address list, but 0.0.0.0 is not Aug 7, 2024
@bugclerk bugclerk changed the title Do not render all IPv4 addresses in Web UI URLs list if :: is in the listen address list, but 0.0.0.0 is not NAS-128845 / 24.10 / Do not render all IPv4 addresses in Web UI URLs list if :: is in the listen address list, but 0.0.0.0 is not Aug 7, 2024
@bugclerk
Copy link
Contributor

bugclerk commented Aug 7, 2024

@themylogin
Copy link
Contributor Author

time 1:30

@@ -288,6 +288,10 @@ async def do_update(self, data):
if ui_restart_delay is not None:
await self.middleware.call('system.general.ui_restart', ui_restart_delay)

if any(config[k] != new_config[k] for k in ['ui_port', 'ui_httpsport', 'ui_httpsredirect', 'ui_address',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These types of comprehensions aren't my favorite. Can we make this a traditional for loop, please? Also, need to use tuples for static information like this.

for key in ('ui_port', 'ui_httpsport', 'ui_httpsredirect', 'ui_address', 'ui_v6address'):
    if config[key] != new_config[key]:
        await self.middleware.call('system.reload_cli')
        break

@themylogin themylogin merged commit 0fd70a7 into master Aug 8, 2024
3 checks passed
@themylogin themylogin deleted the NAS-128845 branch August 8, 2024 12:51
@bugclerk
Copy link
Contributor

bugclerk commented Aug 8, 2024

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@truenas truenas locked as resolved and limited conversation to collaborators Aug 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants