github.com/database64128/shadowsocks-go@v1.10.2-0.20240315062903-143a773533f1/conn/conn_darwinlinuxwindows.go (about) 1 //go:build darwin || linux || windows 2 3 package conn 4 5 func (fns setFuncSlice) appendSetRecvPktinfoFunc(recvPktinfo bool) setFuncSlice { 6 if recvPktinfo { 7 return append(fns, setRecvPktinfo) 8 } 9 return fns 10 }