Skip to content

Commit

Permalink
Merge pull request #45 from balena-io/update-go
Browse files Browse the repository at this point in the history
update to Go v1.11.5
  • Loading branch information
wrboyce authored Jan 29, 2019
2 parents dbb37f3 + 502131a commit 74a8557
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
build:
working_directory: /go/src/github.com/balena-io/sshproxy
docker:
- image: golang:1.11.4
- image: golang:1.11.5
steps:
- checkout
- run:
Expand Down
2 changes: 1 addition & 1 deletion balena/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"strings"
"text/template"

"github.com/balena-io/pinejs-client-go"
pinejs "github.com/balena-io/pinejs-client-go"
"golang.org/x/crypto/ssh"
)

Expand Down
2 changes: 1 addition & 1 deletion balena/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"syscall"

"github.com/balena-io/sshproxy"
"github.com/getsentry/raven-go"
raven "github.com/getsentry/raven-go"
"github.com/spf13/pflag"
"github.com/spf13/viper"
"golang.org/x/crypto/ssh"
Expand Down
8 changes: 4 additions & 4 deletions sshproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,13 @@ func (s *Server) upgradeConnection(conn net.Conn) {
}
return
}
if (s.verbosity >= 2) {
if s.verbosity >= 2 {
log.Printf("New SSH connection from %s (%s)", conn.RemoteAddr(), sshConn.ClientVersion())
}

defer func() {
conn.Close()
if (s.verbosity >= 2) {
if s.verbosity >= 2 {
log.Printf("Closed connection to %s", conn.RemoteAddr())
}
}()
Expand All @@ -169,7 +169,7 @@ func (s *Server) upgradeConnection(conn net.Conn) {
func (s *Server) handleChannels(chans <-chan ssh.NewChannel, conn *ssh.ServerConn) {
var wg sync.WaitGroup
for newChannel := range chans {
if (s.verbosity >= 2) {
if s.verbosity >= 2 {
log.Printf("New SSH channel from %s", conn.RemoteAddr())
}
if chanType := newChannel.ChannelType(); chanType != "session" {
Expand All @@ -181,7 +181,7 @@ func (s *Server) handleChannels(chans <-chan ssh.NewChannel, conn *ssh.ServerCon

channel, reqs, err := newChannel.Accept()
if err != nil {
if (s.verbosity >= 1) {
if s.verbosity >= 1 {
log.Printf("Could not accept channel request (%s)", err)
}
continue
Expand Down

0 comments on commit 74a8557

Please sign in to comment.