Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update util.go
  • Loading branch information
trim21 committed Jul 21, 2023
commit 4585ec222efde07a2c7a97fb1ad6f0a9b7aef3f4
1 change: 1 addition & 0 deletions middleware/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ func matchSubdomain(domain, pattern string) bool {
return false
}

// https://tip.golang.org/doc/go1.19#:~:text=Read%20no%20longer%20buffers%20random%20data%20obtained%20from%20the%20operating%20system%20between%20calls
var randomReaderPool = sync.Pool{New: func() any {
return bufio.NewReader(rand.Reader)
}}
Expand Down