Skip to content

Commit

Permalink
bump protocol version
Browse files Browse the repository at this point in the history
  • Loading branch information
jpillora committed Dec 29, 2018
1 parent 389eab6 commit 4a85f97
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion server/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (s *Server) handleClientHandler(w http.ResponseWriter, r *http.Request) {
return
}
//print into server logs and silently fall-through
s.Infof("ignored client connection using protocol version %s (expected %s)",
s.Infof("ignored client connection using protocol '%s', expected '%s'",
protocol, chshare.ProtocolVersion)
}
//proxy target was provided
Expand Down
4 changes: 2 additions & 2 deletions share/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type TCPProxy struct {
func NewTCPProxy(logger *Logger, ssh GetSSHConn, index int, remote *Remote) *TCPProxy {
id := index + 1
return &TCPProxy{
Logger: logger.Fork("proxy#%d<%s>", id, remote),
Logger: logger.Fork("proxy#%d:%s", id, remote),
ssh: ssh,
id: id,
remote: remote,
Expand All @@ -46,7 +46,7 @@ func (p *TCPProxy) listen(ctx context.Context, l net.Listener) {
select {
case <-ctx.Done():
l.Close()
p.Debugf("Closed")
p.Infof("Closed")
case <-done:
}
}()
Expand Down
2 changes: 1 addition & 1 deletion share/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ package chshare
//incompatible changes are made, this will
//be incremented to signify a protocol
//mismatch.
const ProtocolVersion = "chisel-v2"
const ProtocolVersion = "chisel-v3"

var BuildVersion = "0.0.0-src"

0 comments on commit 4a85f97

Please sign in to comment.