packages/net/djbdns/patches/220-dnscacheip-space-separator.patch
nbd 0e7a8e9b4e djbdns: fix compile errors because of wrong ranlib use, also apply Johnny Halfmoon's update to 1.05-5 (#5764)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@17673 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-22 08:45:48 +00:00

12 lines
278 B
Diff

--- a/dns_rcip.c
+++ b/dns_rcip.c
@@ -17,7 +17,7 @@ static int init(char ip[64])
x = env_get("DNSCACHEIP");
if (x)
while (iplen <= 60) {
- if (*x == '.')
+ if (*x == ' ' || *x == '\t' || *x == '\n')
++x;
else {
i = ip4_scan(x,ip + iplen);