github.com/database64128/shadowsocks-go@v1.10.2-0.20240315062903-143a773533f1/service/udp_transparent_generic.go (about)

     1  //go:build !linux
     2  
     3  package service
     4  
     5  import (
     6  	"errors"
     7  
     8  	"github.com/database64128/shadowsocks-go/conn"
     9  	"github.com/database64128/shadowsocks-go/router"
    10  	"github.com/database64128/shadowsocks-go/stats"
    11  	"go.uber.org/zap"
    12  )
    13  
    14  func NewUDPTransparentRelay(
    15  	serverName string,
    16  	serverIndex, mtu, packetBufFrontHeadroom, packetBufRecvSize, packetBufSize int,
    17  	listeners []udpRelayServerConn,
    18  	transparentConnListenConfig conn.ListenConfig,
    19  	collector stats.Collector,
    20  	router *router.Router,
    21  	logger *zap.Logger,
    22  ) (Relay, error) {
    23  	return nil, errors.New("transparent proxy is not implemented for this platform")
    24  }