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

     1  //go:build darwin || freebsd || linux || windows
     2  
     3  package conn
     4  
     5  func (fns setFuncSlice) appendSetPMTUDFunc(pmtud bool) setFuncSlice {
     6  	if pmtud {
     7  		return append(fns, setPMTUD)
     8  	}
     9  	return fns
    10  }