[Olsr-dev] http-info down since some days (luci) solved

Ufo (spam-protected)
Mon Jun 23 20:17:25 CEST 2014


Am 23.06.14 18:13, schrieb Jo-Philipp Wich:

> "neigh.sh" uses txtinfo while LuCI uses jsoninfo.

no, since some time jsoninfo is used for that too.
but i found the problem :-) in
http://git.openwrt.org/?p=project/luci.git;a=blob_plain;f=applications/luci-olsr/luasrc/controller/olsr.lua;hb=HEAD

The if-construct isnt very nice now and failing with our config :-(
As a workaround i added that IpVersion to our /etc/config/olsrd

Maybe someone could change that in code please? or is that value really
mandatory now :-/


	local IpVersion = uci:get_first("olsrd", "olsrd","IpVersion")
	if IpVersion == "4" or IpVersion == "6and4" then
		jsonreq4 = utl.exec("echo /status | nc 127.0.0.1 9090")
	end
	if IpVersion == "6" or IpVersion == "6and4" then
		jsonreq6 = utl.exec("echo /status | nc ::1 9090")
	end


greetings, ufo

-- 
---
Freifunk Leipzig http://leipzig.freifunk.net




More information about the Olsr-dev mailing list