Skip to content

config: support multiple default values#228

Merged
nl5887 merged 2 commits into
honeytrap:masterfrom
CapacitorSet:config-default-file
Mar 8, 2018
Merged

config: support multiple default values#228
nl5887 merged 2 commits into
honeytrap:masterfrom
CapacitorSet:config-default-file

Conversation

@CapacitorSet

Copy link
Copy Markdown
Contributor

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

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

@nl5887 nl5887 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great work!

Comment thread cmd/honeytrap/main.go
// Honeytrap will search for a config file in these files, in descending priority
configCandidates := []string{
c.String("config"),
"/etc/honeytrap/config.toml",

Copy link
Copy Markdown
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
Copy Markdown
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.

2 participants