Hello fellows,
i spent quite a while banging my head trying to understand why a luci
graph was not working, the XHR.poll() was failing on a given, specific URL.
turns out, it failed when the url ended like "whatever_adhoc"
luci XHR appends a '?_=0.15089513623292194', resulting in a url like
http://10.5.0.6/cgi-bin/luci/.../wlan0_adhoc?_=0.15089513623292194
after a quick chat with jow, i found out it was uBlock getting in the
way; chromium with adBlockPlus gave the same problem.
i have both with defaults settings, namely, just use Easylist
see it for yourselves:
https://easylist-downloads.adblockplus.org/easylist.txt
includes the expression
_adhoc?
the "?" is not a regexp, it's a literal "?", but as i said
XHR.poll
appends a '?' to the end of the url, completing the blocked expression
so this breaks, for example, luci Realtime Traffic graphs for the
interface "wlan0_adhoc", amongst others.
My suggestion for this bizarre coincidence of events, is simply to
change our lime separator to "-" instead of "_"
which, by the way, is more "in line" with upstream
automatic names for several wifi-ifaces are like wlan0, wlan0-1, wlan0-2
so it's better if we use wlan0-adhoc, wlan0-ap, etc
and for the vlanSeparator (which is currently '-') just use '_',
so complete interface name will be wlan0-adhoc_167 and such
(exactly the opposite of the current name, but at least to me it makes
more sense, and as a bonus this will not end up in a blocked url)
cheers!