net/iodine: make address config optional 125/head
authorUwe Kleine-König <uwe+openwrt@kleine-koenig.org>
Thu, 24 Jul 2014 07:31:54 +0000 (09:31 +0200)
committerUwe Kleine-König <uwe+openwrt@kleine-koenig.org>
Thu, 24 Jul 2014 07:56:09 +0000 (09:56 +0200)
In the absense of an address entry bind to all interfaces which is also
iodined's default when -l isn't given.

Signed-off-by: Uwe Kleine-König <uwe+openwrt@kleine-koenig.org>
net/iodine/files/iodined.init

index 89f1825f160e88daa8fabfba800b20d4665db8a7..48dea619dcee3f6bd8362e28edb147b308338f08 100644 (file)
@@ -11,6 +11,7 @@ start_instance () {
        config_get tld      "$section" 'tld'
        config_get port     "$section" 'port'
        
+       test -n "$address" || address='0.0.0.0'
        test -n "$port" || port='53'
 
        service_start /usr/sbin/iodined -l "$address" -P "$password" -p "$port" "$tunnelip" "$tld"