Skip to content

Commit aca17c5

Browse files
committed
version is actually protocol version
1 parent d4fc415 commit aca17c5

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

chisel-forward/client/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func NewClient(auth, server string, remotes []string) (*Client, error) {
4747
u.Scheme = strings.Replace(u.Scheme, "http", "ws", 1)
4848

4949
c := &chisel.Config{
50-
Version: chisel.Version,
50+
Version: chisel.ProtocolVersion,
5151
Auth: auth,
5252
Server: u.String(),
5353
}

chiseld/foo

-6.62 MB
Binary file not shown.

chiseld/server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func (s *Server) handshake(h string) (*chisel.Config, error) {
7171
if err != nil {
7272
return nil, err
7373
}
74-
if chisel.Version != c.Version {
74+
if chisel.ProtocolVersion != c.Version {
7575
return nil, fmt.Errorf("Version mismatch")
7676
}
7777
if s.auth != "" {

version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ package chisel
44
//incompatible changes are made, this will
55
//be incremented to prevent different versions
66
//from communicating.
7-
const Version = "1"
7+
const ProtocolVersion = "1"

0 commit comments

Comments
 (0)