Changeset 8154

Show
Ignore:
Timestamp:
01/07/12 22:55:52 (17 months ago)
Author:
jow
Message:

applications/luci-firewall: fix datatype validation for masq src/dest; allow list of negated ucinames, hostnames, ip-ranges or -addresses

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/applications/luci-firewall/luasrc/model/cbi/firewall/zone-details.lua

    r8108 r8154  
    33 
    44Copyright 2008 Steven Barth <steven@midlink.org> 
     5Copyright 2010-2011 Jo-Philipp Wich <xm@subsignal.org> 
    56 
    67Licensed under the Apache License, Version 2.0 (the "License"); 
     
    137138 
    138139msrc.optional = true 
    139 msrc.datatype = "neg_network_ip4addr" 
     140msrc.datatype = "list(neg,network)" 
    140141msrc.placeholder = "0.0.0.0/0" 
    141142msrc:depends("family", "") 
     
    146147 
    147148mdest.optional = true 
    148 mdest.datatype = "neg_network_ip4addr" 
     149mdest.datatype = "list(neg,network)" 
    149150mdest.placeholder = "0.0.0.0/0" 
    150151mdest:depends("family", "")