applications/transmission: Fix nil value with trport, #397
authorManuel Munz <freifunk@somakoma.de>
Wed, 18 Apr 2012 16:49:10 +0000 (16:49 +0000)
committerManuel Munz <freifunk@somakoma.de>
Wed, 18 Apr 2012 16:49:10 +0000 (16:49 +0000)
applications/luci-transmission/luasrc/model/cbi/transmission.lua

index fa036fb0f9e303a9f8a8c7fb8f92f7ec760415b8..e727a0de38b79a4aef1c812b2b4a0b2eaaf3e472 100644 (file)
@@ -17,7 +17,7 @@ require("luci.util")
 require("luci.model.ipkg")
 
 local uci = require "luci.model.uci".cursor()
-local trport = uci:get_first("transmission", "transmission", "rpc_port")
+local trport = uci:get_first("transmission", "transmission", "rpc_port") or 9091
 local running = (luci.sys.call("pidof transmission-daemon > /dev/null") == 0)
 local webinstalled = luci.model.ipkg.installed("transmission-web") 
 local button = ""