summaryrefslogtreecommitdiffstats
path: root/package/network/ipv6/6relayd/files
diff options
context:
space:
mode:
authorcyrus <cyrus@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-02-26 12:50:52 +0000
committercyrus <cyrus@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-02-26 12:50:52 +0000
commitb0f86088a14473987f7433b8066a9a0e5c07b1a9 (patch)
tree5351394636e1869a1574a0aacc8c68dab4bd4f8d /package/network/ipv6/6relayd/files
parentf457db83d826d18ab9ef8823b829b8015893111e (diff)
6relayd: Fix config behaviour for rewrite_dns_addr option
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35804 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/ipv6/6relayd/files')
-rw-r--r--package/network/ipv6/6relayd/files/6relayd.init2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/ipv6/6relayd/files/6relayd.init b/package/network/ipv6/6relayd/files/6relayd.init
index 410164a9d..ef0c71122 100644
--- a/package/network/ipv6/6relayd/files/6relayd.init
+++ b/package/network/ipv6/6relayd/files/6relayd.init
@@ -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