Merge pull request #125 from ukleinek/iodine
authorsbyx <steven@midlink.org>
Thu, 24 Jul 2014 12:25:56 +0000 (14:25 +0200)
committersbyx <steven@midlink.org>
Thu, 24 Jul 2014 12:25:56 +0000 (14:25 +0200)
net/iodine: config updates

net/iodine/files/iodined.init

index d91b7793ef1f1a89eae28ba6498f049a87f4d61d..48dea619dcee3f6bd8362e28edb147b308338f08 100644 (file)
@@ -9,8 +9,12 @@ start_instance () {
        config_get password "$section" 'password'
        config_get tunnelip "$section" 'tunnelip'
        config_get tld      "$section" 'tld'
+       config_get port     "$section" 'port'
        
-       service_start /usr/sbin/iodined -l "$address" -P "$password" "$tunnelip" "$tld"
+       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"
 }
 
 start() {