Skip to content
Snippets Groups Projects
Commit 303ddf3c authored by Tim Niemeyer's avatar Tim Niemeyer
Browse files

openwrt: fix ntp init to accept link local addr


Currently it seems to be more work to fix the ip validation in
ubox project (validate/validate.c). Therefore we just validate it
as string.

Fixes #9

Signed-off-by: default avatarTim Niemeyer <tim@tn-x.org>
Reviewed-by: default avatarJan Kraus <mayosemmel@gmail.com>
Reviewed-by: default avatarTobias Klaus <tk+ff@meskal.net>
parent e3fe21ec
No related branches found
No related tags found
No related merge requests found
diff --git package/utils/busybox/files/sysntpd package/utils/busybox/files/sysntpd
index f73bb83..61cb54c 100755
--- package/utils/busybox/files/sysntpd
+++ package/utils/busybox/files/sysntpd
@@ -9,7 +9,7 @@ HOTPLUG_SCRIPT=/usr/sbin/ntpd-hotplug
validate_ntp_section() {
uci_validate_section system timeserver "${1}" \
- 'server:list(host)' 'enabled:bool:1' 'enable_server:bool:0'
+ 'server:list(string)' 'enabled:bool:1' 'enable_server:bool:0'
}
start_service() {
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment