[openwrt/openwrt] ubox: fix init script validation of log_ip option

LEDE Commits lede-commits at lists.infradead.org
Fri May 28 06:26:50 PDT 2021


jow pushed a commit to openwrt/openwrt.git, branch openwrt-19.07:
https://git.openwrt.org/1153773c78d39d518b592f7b77180f370bcd4a60

commit 1153773c78d39d518b592f7b77180f370bcd4a60
Author: Jo-Philipp Wich <jo at mein.io>
AuthorDate: Fri May 28 15:23:14 2021 +0200

    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 at mein.io>
    (backported from commit ec83fb9ced138b7945135adffb9ff0ba63b695ec)
---
 package/system/ubox/Makefile       | 2 +-
 package/system/ubox/files/log.init | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/system/ubox/Makefile b/package/system/ubox/Makefile
index 6e67951929..d303603c0d 100644
--- a/package/system/ubox/Makefile
+++ b/package/system/ubox/Makefile
@@ -1,7 +1,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ubox
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL=$(PROJECT_GIT)/project/ubox.git
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' \



More information about the lede-commits mailing list