github.com/Asutorufa/yuhaiin@v0.3.6-0.20240502055049-7984da7023a0/pkg/net/proxy/redir/server/handle.go (about) 1 //go:build !darwin && !linux 2 // +build !darwin,!linux 3 4 package server 5 6 import ( 7 "fmt" 8 "net" 9 "runtime" 10 ) 11 12 func (r *redir) handle(req net.Conn) error { 13 req.Close() 14 return fmt.Errorf("%s can't support redir", runtime.GOOS) 15 }