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

config: support multiple default values #228

Merged
merged 2 commits into from
Mar 8, 2018

Conversation

CapacitorSet
Copy link
Contributor

Adds support for /etc/honeytrap/config.toml, with the possibility of adding more choices.

Fixes #195, which would then allow for packaging RPMs.

Copy link
Contributor

@nl5887 nl5887 left a comment

Choose a reason for hiding this comment

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

Great work!

// Honeytrap will search for a config file in these files, in descending priority
configCandidates := []string{
c.String("config"),
"/etc/honeytrap/config.toml",
Copy link
Contributor

Choose a reason for hiding this comment

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

lets add /etc/honeytrap.toml also.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@nl5887 nl5887 merged commit cbfb568 into honeytrap:master Mar 8, 2018
@CapacitorSet CapacitorSet deleted the config-default-file branch March 16, 2018 21:05
@CapacitorSet CapacitorSet restored the config-default-file branch April 11, 2018 18:54
@CapacitorSet CapacitorSet deleted the config-default-file branch April 16, 2018 21:16
@CapacitorSet CapacitorSet restored the config-default-file branch April 18, 2018 21:46
@CapacitorSet CapacitorSet deleted the config-default-file branch April 18, 2018 22:08
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.

None yet

2 participants