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

Fixes overwrite of ES options #140

Merged
merged 2 commits into from
Jul 28, 2022
Merged

Conversation

BuffaloWill
Copy link
Contributor

Proposed changes

Currently, logger.go overwrites most user provided CLI ElasticSearch options. To test set "-elastic-ssl", "-elastic-username", or "-elastic-password" and notice these are not sent to the ElasticSearch cluster. The issue is on line 52-55 of logger.go which take in two user provided options but ignore the rest. This PR fixes that by including all supplied ES options. This behaved correctly on a ES server I tested against.

Checklist

I am not sure how to run the checks. Any help with that would be great. Thank you!

  • [X ] Pull request is created against the dev branch
  • All checks passed (lint, unit/integration/regression tests etc.) with my changes
  • [ X] I have added tests that prove my fix is effective or that my feature works
  • [ X] I have added necessary documentation (if appropriate)

@ehsandeep ehsandeep merged commit c2878a4 into projectdiscovery:dev Jul 28, 2022
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.

4 participants