Skip to content
  • Paul Donald's avatar
    luci-app-firewall: Add 'any' choice for SNAT 'family' option · 4ca87f65
    Paul Donald authored
    
    
    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>
    4ca87f65