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

fix: show managed stuff on privileged port #4433

Merged
merged 2 commits into from
Jan 9, 2025
Merged

fix: show managed stuff on privileged port #4433

merged 2 commits into from
Jan 9, 2025

Conversation

romange
Copy link
Collaborator

@romange romange commented Jan 9, 2025

No description provided.

@romange romange requested a review from chakaz January 9, 2025 10:00
chakaz
chakaz previously approved these changes Jan 9, 2025
@@ -2255,7 +2255,8 @@ void ServerFamily::Info(CmdArgList args, const CommandContext& cmd_cntx) {
append("dragonfly_version", GetVersion());
append("redis_mode", GetRedisMode());
append("arch_bits", 64);
if (!absl::GetFlag(FLAGS_managed_service_info)) {

if (!absl::GetFlag(FLAGS_managed_service_info) || cmd_cntx.conn_cntx->conn()->IsPrivileged()) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd wrap this in a lambda, but your call

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

i did not notice it's the same function. Added a variable.

@romange romange merged commit f291ae2 into main Jan 9, 2025
9 checks passed
@romange romange deleted the Pr4 branch January 9, 2025 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants