tls support

Hey Guys:

I needed TLS support so I could use log-iss to send logs to papertrail over an encrypted channel.  This actually did the trick!  Was kind of surprised how easy this was in the end.

Lemme know what you think. 
nah i like what you suggested


On Fri, Nov 21, 2014 at 4:37 PM, Edward Muller <notifications@github.com>
wrote:

> In forwarder.go:
>
> > @@ -59,7 +60,17 @@ func (f *Forwarder) connect() {
> >  	for {
> >  		start := time.Now()
> >  		Logf("count#log-iss.forwarder.connect.attempt=1 id=%d", f.Id)
> > -		if c, err := net.DialTimeout("tcp", f.Set.Config.ForwardDest, f.Set.Config.ForwardDestConnectTimeout); err != nil {
> > +
> > +		var c net.Conn
> > +		var err error
> > +
> > +		if f.Set.Config.UseTls {
>
> Then here you can say if f.Set.Config.TlsConfig != nil instead. Or if you
> feel that's too leaky you could make a UseTls() method that returns a bool
> that does the same thing to wrap it.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/heroku/log-iss/pull/7/files#r20751812>.
>