luci-olsr: fix ipv6 ipv4 detection

git-svn-id: http://svn.luci.subsignal.org/luci/trunk@9877 ab181a69-ba2e-0410-a84d-ff88ab4c47bc