Fix 'all' option for mss clamp

master
Brie Bruns 2015-04-09 15:32:21 -06:00
parent 78772c0cdf
commit dcb0e19acc
1 changed files with 1 additions and 1 deletions

View File

@ -184,8 +184,8 @@ function enable_mss_clamp {
[[ -z ${msssize} ]] && msssize="-"
[[ ${msssize} != "-" ]] && msssize="--set-mss ${msssize}"
[[ ${msssize} == "-" ]] && msssize="--clamp-mss-to-pmtu"
[[ ${interface} == "all" ]] && interface=""
[[ ${interface} != "all" ]] && interface="-o ${interface}"
[[ ${interface} == "all" ]] && interface=""
${debug} ${DebugColor} "${FUNCNAME}:${DEFAULT_COLOR} Read: ${interface} ${mss} ${type} ${msssize}"
${VER_IPTABLES} -A ${type} -p tcp --tcp-flags SYN,RST SYN -j TCPMSS \
${interface} -m tcpmss --mss ${mss} ${msssize}