Skip to content
Commit 4ca87f65 authored by Paul Donald's avatar Paul Donald
Browse files

luci-app-firewall: Add 'any' choice for SNAT 'family' option



If one sets a SNAT rule via the GUI as 'automatic', the
'family' remains empty. In fw4.uc code, this is interpreted as:

/* default to IPv4 only for backwards compatibility,
 unless an explicit family any was configured */

'any' is handled by fw4 as IPv4+6.

Also prevent 'any' from triggering a validation error (non-SNAT targets
hide 'snat_ip' which remains empty, and triggered an error).

Signed-off-by: default avatarPaul Donald <newtwen+github@gmail.com>
parent cf6c24fa
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment