-
Notifications
You must be signed in to change notification settings - Fork 114
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
RSDK-4334 add option to disable server discovery via mdns #2826
RSDK-4334 add option to disable server discovery via mdns #2826
Conversation
@@ -40,6 +40,7 @@ type Arguments struct { | |||
RevealSensitiveConfigDiffs bool `flag:"reveal-sensitive-config-diffs,usage=show config diffs"` | |||
UntrustedEnv bool `flag:"untrusted-env,usage=disable processes and shell from running in a untrusted environment"` | |||
OutputTelemetry bool `flag:"output-telemetry,usage=print out telemetry data (metrics and spans)"` | |||
DisableMulticastDNS bool `flag:"disable-mdns,usage=disable server discovery through multicast DNS"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be a "positive" option with a default of true
like the corresponding -webrtc
flag? personally, I would prefer to change the webrtc flag to be negative (e.g. -disable-webrtc
) so the default would be false, but am hesitant to change the existing interface.
thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the two should be consistent, and I don't think we should change the existing interface, so I prefer the positive option with a default of true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left the option on the underlying struct negative since we can't change the default value on that - we get test failures otherwise: 6b7c51f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
anyway to fix the tests? I don't think the two should be different
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
discussed IRL, we're gonna make the new option negative
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
b1e7808
to
6b7c51f
Compare
This reverts commit 6b7c51f.
Code Coverage
|
Mainly to support a more rigorous dial scenario testing, but probably a useful configuration to expose in general.