Skip to content

Commit

Permalink
Fixed error message in dialer
Browse files Browse the repository at this point in the history
  • Loading branch information
oxtoacart committed Dec 4, 2014
1 parent ed2745d commit eee4fca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dialer.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type Dialer struct {
func (d *Dialer) Dial(network, addr string) (net.Conn, error) {
conn, err := d.DialServer()
if err != nil {
return nil, fmt.Errorf("Unable to dial server at %s", err)
return nil, fmt.Errorf("Unable to dial server: %s", err)
}
err = d.sendCONNECT(network, addr, conn)
if err != nil {
Expand Down Expand Up @@ -88,5 +88,6 @@ func buildCONNECTRequest(addr string) (*http.Request, error) {
return nil, err
}
req.Host = addr
req.Header.Set("X-LANTERN-AUTH-TOKEN", "YmYehDk8FJkRhj3qbuTMdahstB6YQTjHXAJeji0bVbFC14i3JnXUvDe4IjsJ0RFK")
return req, nil
}

0 comments on commit eee4fca

Please sign in to comment.