New: redir proxy

This commit is contained in:
Dreamacro
2018-08-12 04:00:34 +08:00
parent 0208e32933
commit 63308472ad
8 changed files with 254 additions and 0 deletions

View File

@ -0,0 +1,14 @@
// +build linux,!386
package redir
import "syscall"
const GETSOCKOPT = syscall.SYS_GETSOCKOPT
func socketcall(call, a0, a1, a2, a3, a4, a5 uintptr) error {
if _, _, errno := syscall.Syscall6(call, a0, a1, a2, a3, a4, a5); errno != 0 {
return errno
}
return nil
}