mirror of
https://github.com/openlibrecommunity/olcrtc.git
synced 2026-05-26 07:08:11 +00:00
refactor(server): split socks5 connect logic
- Extract auth logic to helper functions - Add linter directives for gosec and globals
This commit is contained in:
@@ -11,11 +11,11 @@ import (
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
var ( //nolint:gochecknoglobals // process-wide stderr fd filter
|
||||
stderrFilterOnce sync.Once
|
||||
stderrPipeWriter *os.File
|
||||
stderrFilterDone chan struct{}
|
||||
stderrFilterActive bool
|
||||
var (
|
||||
stderrFilterOnce sync.Once //nolint:gochecknoglobals // process-wide stderr fd filter
|
||||
stderrPipeWriter *os.File //nolint:gochecknoglobals // process-wide stderr fd filter
|
||||
stderrFilterDone chan struct{} //nolint:gochecknoglobals // process-wide stderr fd filter
|
||||
stderrFilterActive bool //nolint:gochecknoglobals // process-wide stderr fd filter
|
||||
)
|
||||
|
||||
func installStderrFilter() {
|
||||
|
||||
Reference in New Issue
Block a user