Changeset 8154


Ignore:
Timestamp:
Jan 7, 2012, 10:55:52 PM (7 years ago)
Author:
jow
Message:

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

File:
1 edited

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", "")
Note: See TracChangeset for help on using the changeset viewer.