net/iodine: make address config optional

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>
This commit is contained in:
Uwe Kleine-König 2014-07-24 09:31:54 +02:00
parent 4e09eeb4ae
commit a66f9e8854
1 changed files with 1 additions and 0 deletions

View 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"