Skip to content

Commit

Permalink
Use the correct argument for check origin.
Browse files Browse the repository at this point in the history
  • Loading branch information
hscells committed Oct 15, 2018
1 parent a2aadf0 commit 703a96f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/bigbro/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ func main() {
log.Fatalf("%s is not a valid log format\n", args.Format)
}

fmt.Printf("checking origin? %v\n", args.CheckOrigin)
fmt.Printf("checking origin? %v\n", !args.CheckOrigin)
bigbro.Upgrader.CheckOrigin = func(r *http.Request) bool {
return args.CheckOrigin
return !args.CheckOrigin
}

s := server{
Expand Down
2 changes: 1 addition & 1 deletion websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
var Upgrader = websocket.Upgrader{
ReadBufferSize: 1024,
CheckOrigin: func(r *http.Request) bool {
return true
return false
},
}

Expand Down

0 comments on commit 703a96f

Please sign in to comment.