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

fix tls config, accept any server name #1

Closed
wants to merge 2 commits into from
Closed

fix tls config, accept any server name #1

wants to merge 2 commits into from

Conversation

awly
Copy link

@awly awly commented Jun 21, 2014

No description provided.

@driskell
Copy link
Owner

Hi,

Was this intended to be made against the master branch?
The master branch is the original Logstash Forwarder 0.3.1 and contains nothing of my work.
The driskell_master branch is my default branch and contains my work - most of which has been now moved to Log Courier http://github.com/driskell/log-courier

If this is intended, please can you fix the code so that the indentation is 2 spaces and not tabs? It will allow me to see the changes in the diff. At the moment, every indented line shows as changed.

(I do prefer tab for indentation but unfortunately this project uses 2 spaces, so we must follow that to keep github diff working)

Jason

@awly
Copy link
Author

awly commented Jun 21, 2014

Sorry, it was indeed intended for main repo, my mistake.

@awly awly closed this Jun 21, 2014
}
return
var tlsconfig tls.Config
tlsconfig.InsecureSkipVerify = true
Copy link
Owner

Choose a reason for hiding this comment

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

One change I have noticed is this.

This is something I will not merge as it renders the TLS connection insecure for everyone. It would absolutely have to be a configuration options. However, I'm not sure why this is required since in all use cases I know of the server certificate is always known.

I am aware of a breaking change when building with Go 1.3 though, referred to here:
elastic#205

Is this what you are attempting to resolve?

Copy link
Author

Choose a reason for hiding this comment

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

To be honest, i accidentally opened this pull request to your repo, it was intended for my fork only.
In any case, the issue is fixed in main repo, so we can skip this discussion, if you will.

@driskell
Copy link
Owner

driskell commented Jul 2, 2014

Just for reference here I fixed this in Log Courier
driskell/log-courier#3

@driskell driskell reopened this Jul 2, 2014
@driskell driskell closed this Jul 2, 2014
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