1 -- Copyright 2014 Álvaro Fernández Rojas <noltari@gmail.com>
2 -- Licensed to the public under the Apache License 2.0.
4 m = Map("udpxy", "udpxy", translate("udpxy is a UDP-to-HTTP multicast traffic relay daemon, here you can configure the settings."))
6 s = m:section(TypedSection, "udpxy", "")
10 enable=s:option(Flag, "disabled", translate("Enabled"))
14 enable.rmempty = false
15 respawn=s:option(Flag, "respawn", translate("Respawn"))
16 respawn.default = false
18 verbose=s:option(Flag, "verbose", translate("Verbose"))
19 verbose.default = false
21 status=s:option(Flag, "status", translate("Status"))
23 bind=s:option(Value, "bind", translate("Bind IP/Interface"))
25 bind.datatype = "or(ipaddr, network)"
27 port=s:option(Value, "port", translate("Port"))
29 port.datatype = "port"
31 source=s:option(Value, "source", translate("Source IP/Interface"))
33 source.datatype = "or(ipaddr, network)"
35 max_clients=s:option(Value, "max_clients", translate("Max clients"))
36 max_clients.rmempty = true
37 max_clients.datatype = "range(1, 5000)"
39 log_file=s:option(Value, "log_file", translate("Log file"))
40 log_file.rmempty = true
41 --log_file.datatype = "file"
43 buffer_size=s:option(Value, "buffer_size", translate("Buffer size"))
44 buffer_size.rmempty = true
45 buffer_size.datatype = "range(4096,2097152)"
47 buffer_messages=s:option(Value, "buffer_messages", translate("Buffer messages"))
48 buffer_messages.rmempty = true
49 buffer_messages.datatype = "or(-1, and(min(1), uinteger))"
51 buffer_time=s:option(Value, "buffer_time", translate("Buffer time"))
52 buffer_time.rmempty = true
53 buffer_time.datatype = "or(-1, and(min(1), uinteger))"
55 nice_increment=s:option(Value, "nice_increment", translate("Nice increment"))
56 nice_increment.rmempty = true
57 nice_increment.datatype = "or(and(max(-1), integer),and(min(1), integer))"
59 mcsub_renew=s:option(Value, "mcsub_renew", translate("Multicast subscription renew"))
60 mcsub_renew.rmempty = true
61 mcsub_renew.datatype = "or(0, range(30, 64000))"