From e6d5c4d5ae0a71f3e0e15d1e3841d4c4bffcc355 Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Wed, 18 Apr 2012 16:49:10 +0000 Subject: [PATCH] applications/transmission: Fix nil value with trport, #397 --- .../luci-transmission/luasrc/model/cbi/transmission.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/luci-transmission/luasrc/model/cbi/transmission.lua b/applications/luci-transmission/luasrc/model/cbi/transmission.lua index fa036fb0f9..e727a0de38 100644 --- a/applications/luci-transmission/luasrc/model/cbi/transmission.lua +++ b/applications/luci-transmission/luasrc/model/cbi/transmission.lua @@ -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 = "" -- 2.30.2