github.com/database64128/shadowsocks-go@v1.7.0/service/udp_transparent_generic.go (about)

     1  //go:build !linux
     2  
     3  package service
     4  
     5  import (
     6  	"errors"
     7  	"time"
     8  
     9  	"github.com/database64128/shadowsocks-go/router"
    10  	"github.com/database64128/shadowsocks-go/stats"
    11  	"github.com/database64128/shadowsocks-go/zerocopy"
    12  	"github.com/database64128/tfo-go/v2"
    13  	"go.uber.org/zap"
    14  )
    15  
    16  func NewUDPTransparentRelay(
    17  	serverName, listenAddress string,
    18  	relayBatchSize, serverRecvBatchSize, sendChannelCapacity, serverIndex, mtu int,
    19  	maxClientPackerHeadroom zerocopy.Headroom,
    20  	natTimeout time.Duration,
    21  	serverConnlistenConfig, transparentConnListenConfig tfo.ListenConfig,
    22  	collector stats.Collector,
    23  	router *router.Router,
    24  	logger *zap.Logger,
    25  ) (Relay, error) {
    26  	return nil, errors.New("transparent proxy is not implemented for this platform")
    27  }