Skip to content

Commit

Permalink
logs removed
Browse files Browse the repository at this point in the history
  • Loading branch information
unique1o1 committed Jun 29, 2021
1 parent b2419a3 commit a37ac2d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,11 @@ func openTunnel() {
for {
message, err := ReadMessage(c)
if err != nil {
log.Println(err) //TODO remove
if _, ok := err.(*websocket.CloseError); ok {
//websocket.CloseAbnormalClosure is calle when process exits or websocket.close() is called
fmt.Println("\n\033[31mServer connection closed\033[00m")
break
}
log.Println(err)
break
}
if value, ok := message.Header["Upgrade"]; ok && (value[0] == "websocket") {
Expand Down

0 comments on commit a37ac2d

Please sign in to comment.