sing-tun-lx/netns_other.go
2026-07-27 23:11:48 +08:00

12 lines
251 B
Go

//go:build !linux
package tun
import (
"context"
"net"
)
func listenNetworkNamespace(ctx context.Context, nameOrPath string, config net.ListenConfig, network, address string) (net.Listener, error) {
return config.Listen(ctx, network, address)
}