Skip to content

Commit 4f58a39

Browse files
authored
Update version.go (#288)
1 parent ed6adb9 commit 4f58a39

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/server_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func (s *Server) handleClientHandler(w http.ResponseWriter, r *http.Request) {
1919
//websockets upgrade AND has chisel prefix
2020
upgrade := strings.ToLower(r.Header.Get("Upgrade"))
2121
protocol := r.Header.Get("Sec-WebSocket-Protocol")
22-
if upgrade == "websocket" && strings.HasPrefix(protocol, "chisel-") {
22+
if upgrade == "websocket" {
2323
if protocol == chshare.ProtocolVersion {
2424
s.handleWebsocket(w, r)
2525
return

share/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ package chshare
44
//incompatible changes are made, this will
55
//be incremented to signify a protocol
66
//mismatch.
7-
const ProtocolVersion = "chisel-v3"
7+
var ProtocolVersion = "chisel-v3"
88

99
var BuildVersion = "0.0.0-src"

0 commit comments

Comments
 (0)