Browse Source

Fix 'all' option for mss clamp

tags/2.1
Brielle Bruns 6 years ago
parent
commit
dcb0e19acc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/iptables.inc

+ 1
- 1
lib/iptables.inc 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}


Loading…
Cancel
Save