mirror of
https://github.com/mageddo/dns-proxy-server.git
synced 2026-04-25 17:35:54 +03:00
[GH-ISSUE #196] Documentation not accurate regarding the use of MG_REGISTER_CONTAINER_NAMES #77
Labels
No labels
bug
confirmed
discussion
duplicate
enhancement
feature
feature-request
not-planned
pull-request
secondary-feature
stale
triage
waiting-feedback
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/dns-proxy-server-mageddo#77
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @imartinezortiz on GitHub (May 4, 2020).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/196
What is Happening
DPS documentation shows that is possible to use the environment variable
MG_REGISTER_CONTAINER_NAMESto configure theregisterContainerNamesconfiguration option.Because the documentation states that the default value is
falsea user may expect to enable the feature usingtruefor the environment variable, howevertrue(or any other value besides1) does not work.What is expected
I expect to pass the param
-e MG_REGISTER_CONTAINER_NAMES="true"and DPS will register all running containersSteps to Reproduce
Seems that the behavior is related to https://github.com/mageddo/dns-proxy-server/blob/master/conf/conf.go#L105.
Can I suggest to change the code to?:
Specs:
@mageddo commented on GitHub (Jul 9, 2020):
Yep, it's tricky because the code is expecting for
1and the doc says it expects fortrueorfalse.Sure I think we could accept the
trueword as a boolean flag, but the code should understand true (case insensitive) or 1 astrue, notblablaastrueand yesfalse.Actually none of the flags supports true keyword so I think we may create a common function and apply to all the flags present on that file
@mageddo commented on GitHub (Mar 4, 2023):
Sorry I'm late. Now you're able to activate flags by using
1ortrue(case insenstive), see the docs. (3.8.0 is being released right now, will be alive in an hour.