diff options
Diffstat (limited to 'package/firewall/files')
-rw-r--r-- | package/firewall/files/reflection.hotplug | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/package/firewall/files/reflection.hotplug b/package/firewall/files/reflection.hotplug index dc6780a72..6b1cd60f2 100644 --- a/package/firewall/files/reflection.hotplug +++ b/package/firewall/files/reflection.hotplug @@ -53,6 +53,10 @@ if [ "$ACTION" = "add" ] && [ "$INTERFACE" = "wan" ]; then local proto config_get proto "$cfg" proto + local reflection + config_get_bool reflection "$cfg" reflection 1 + [ "$reflection" == 1 ] || return + local epmin epmax extport config_get extport "$cfg" src_dport [ -n "$extport" ] || return |