aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/ubox/files/log.init
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-05-28 15:23:14 +0200
committerJo-Philipp Wich <jo@mein.io>2021-05-28 15:26:31 +0200
commit1153773c78d39d518b592f7b77180f370bcd4a60 (patch)
treed17742a7b31146c1a8984efc7a97888a84c9dafe /package/system/ubox/files/log.init
parenta1ee0ebbd8e9927a65c5d1e0db497dd118d559a6 (diff)
downloadupstream-1153773c78d39d518b592f7b77180f370bcd4a60.tar.gz
upstream-1153773c78d39d518b592f7b77180f370bcd4a60.tar.bz2
upstream-1153773c78d39d518b592f7b77180f370bcd4a60.zip
ubox: fix init script validation of log_ip option
The underlying logread process uses usock() to handle remote connections which is able to handle both hostnames and IP addresses. Ref: https://github.com/openwrt/luci/issues/5077 Signed-off-by: Jo-Philipp Wich <jo@mein.io> (backported from commit ec83fb9ced138b7945135adffb9ff0ba63b695ec)
Diffstat (limited to 'package/system/ubox/files/log.init')
-rw-r--r--package/system/ubox/files/log.init2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/system/ubox/files/log.init b/package/system/ubox/files/log.init
index ba9c124c8b..bfaf31ca9f 100644
--- a/package/system/ubox/files/log.init
+++ b/package/system/ubox/files/log.init
@@ -15,7 +15,7 @@ validate_log_section()
'log_file:string' \
'log_size:uinteger' \
'log_hostname:string' \
- 'log_ip:ipaddr' \
+ 'log_ip:host' \
'log_remote:bool:1' \
'log_port:port:514' \
'log_proto:or("tcp", "udp"):udp' \