Fix 'all' option for mss clamp
parent
78772c0cdf
commit
dcb0e19acc
|
@ -184,8 +184,8 @@ function enable_mss_clamp {
|
||||||
[[ -z ${msssize} ]] && msssize="-"
|
[[ -z ${msssize} ]] && msssize="-"
|
||||||
[[ ${msssize} != "-" ]] && msssize="--set-mss ${msssize}"
|
[[ ${msssize} != "-" ]] && msssize="--set-mss ${msssize}"
|
||||||
[[ ${msssize} == "-" ]] && msssize="--clamp-mss-to-pmtu"
|
[[ ${msssize} == "-" ]] && msssize="--clamp-mss-to-pmtu"
|
||||||
[[ ${interface} == "all" ]] && interface=""
|
|
||||||
[[ ${interface} != "all" ]] && interface="-o ${interface}"
|
[[ ${interface} != "all" ]] && interface="-o ${interface}"
|
||||||
|
[[ ${interface} == "all" ]] && interface=""
|
||||||
${debug} ${DebugColor} "${FUNCNAME}:${DEFAULT_COLOR} Read: ${interface} ${mss} ${type} ${msssize}"
|
${debug} ${DebugColor} "${FUNCNAME}:${DEFAULT_COLOR} Read: ${interface} ${mss} ${type} ${msssize}"
|
||||||
${VER_IPTABLES} -A ${type} -p tcp --tcp-flags SYN,RST SYN -j TCPMSS \
|
${VER_IPTABLES} -A ${type} -p tcp --tcp-flags SYN,RST SYN -j TCPMSS \
|
||||||
${interface} -m tcpmss --mss ${mss} ${msssize}
|
${interface} -m tcpmss --mss ${mss} ${msssize}
|
||||||
|
|
Loading…
Reference in New Issue