6relayd: Fix config behaviour for rewrite_dns_addr option
authorSteven Barth <cyrus@openwrt.org>
Tue, 26 Feb 2013 12:50:52 +0000 (12:50 +0000)
committerSteven Barth <cyrus@openwrt.org>
Tue, 26 Feb 2013 12:50:52 +0000 (12:50 +0000)
SVN-Revision: 35804

package/network/ipv6/6relayd/Makefile
package/network/ipv6/6relayd/files/6relayd.init

index 790f5e27729c113b35836b2ce9c78325899a7f9a..8fe797780057af819322626ee9d90a9bde4a8878 100644 (file)
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=6relayd
-PKG_VERSION:=2013-02-26
+PKG_VERSION:=2013-02-26.1
 PKG_RELEASE=$(PKG_SOURCE_VERSION)
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
index 410164a9d7b6b742eb04c75069acaa2da449364f..ef0c711224a21cefa57dcd415d6d3b52c8f3fac1 100644 (file)
@@ -69,7 +69,7 @@ start_6relayd() {
        local always_rewrite_dns rewrite_dns_addr
        config_get_bool always_rewrite_dns "$cfg" always_rewrite_dns 0
        config_get rewrite_dns_addr "$cfg" rewrite_dns_addr
-       [ "$always_rewrite_dns" -eq 1 ] && append args "-n$rewrite_dns_addr"
+       [ "$always_rewrite_dns" -eq 1 -o -n "$rewrite_dns_addr" ] && append args "-n$rewrite_dns_addr"
 
        local always_assume_default
        config_get_bool always_assume_default "$cfg" always_assume_default 0