Jelajahi Sumber

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 <[email protected]>
Jo-Philipp Wich 4 tahun lalu
induk
melakukan
ec83fb9ced
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 1 1
      package/system/ubox/Makefile
  2. 1 1
      package/system/ubox/files/log.init

+ 1 - 1
package/system/ubox/Makefile

@@ -1,7 +1,7 @@
 include $(TOPDIR)/rules.mk
 include $(TOPDIR)/rules.mk
 
 
 PKG_NAME:=ubox
 PKG_NAME:=ubox
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL=$(PROJECT_GIT)/project/ubox.git
 PKG_SOURCE_URL=$(PROJECT_GIT)/project/ubox.git

+ 1 - 1
package/system/ubox/files/log.init

@@ -15,7 +15,7 @@ validate_log_section()
 		'log_file:string' \
 		'log_file:string' \
 		'log_size:uinteger' \
 		'log_size:uinteger' \
 		'log_hostname:string' \
 		'log_hostname:string' \
-		'log_ip:ipaddr' \
+		'log_ip:host' \
 		'log_remote:bool:1' \
 		'log_remote:bool:1' \
 		'log_port:port:514' \
 		'log_port:port:514' \
 		'log_proto:or("tcp", "udp"):udp' \
 		'log_proto:or("tcp", "udp"):udp' \