mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2025-01-11 01:25:46 +00:00
5ef61faeff
* Link refactoring * More refactoring * More tweaking * Cleaner shutdowns, UNIX socket support, more tweaks * Actorise links, remove mutex * SOCKS support
19 lines
378 B
Go
19 lines
378 B
Go
//go:build !darwin && !linux
|
|
// +build !darwin,!linux
|
|
|
|
package core
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
// WARNING: This context is used both by net.Dialer and net.Listen in tcp.go
|
|
|
|
func (t *linkTCP) tcpContext(network, address string, c syscall.RawConn) error {
|
|
return nil
|
|
}
|
|
|
|
func (t *linkTCP) getControl(sintf string) func(string, string, syscall.RawConn) error {
|
|
return t.tcpContext
|
|
}
|