The tr command does not take regular expressions and should not be
used with ranges such as [a-z] which furthermore can cause issues if
unquoted as they are interpreted by the shell.
This reverts commit 051826305e.
Reason for revert: This appears unnecessary as individual ifup events
are already being generated for main and alias interfaces. The logic
is also broken. It causes owsd to be reloaded every time there is ifup
event on alias interface, regardless of owsd configuration.
When the LAN interface has an IPv6 Unique local address owsd gets confused.
IPv4 requests arrive into the virtual IPv6 interface of owsd which makes
the origin check to fail. Workaround the problem by disabling origin check
for LAN. This shouldn't be a problem (?) due to we already has the same
check disabled on WAN by default.
-------------------------------------------------------------------------------
* ddaaafa use mac as ubusx event prefix refs #15472
* 1c99f70 use mac as ubusx object prefix refs #15472
* 5f2da35 add cmdline parameter to control the ubusx prefix type refs #15472
* db5477b wsubus: match origin case insensitively refs #15501
* 19a429e prepare for: ubusx object prefix change from ip to mac refs #15472
-------------------------------------------------------------------------------
commit ddaaafa5cd5a6b4fbeb554afd03e982559ceab88
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-07-24 16:41:15 +0200
use mac as ubusx event prefix refs #15472
Base directory -> /
src/local_stub.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 1c99f70271531871468ebe538b516152092c9d4f
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-07-24 16:29:14 +0200
use mac as ubusx object prefix refs #15472
Base directory -> /
src/local_stub.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 5f2da3522ceb95c44f200d6ffa24d62eb31d0fed
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-07-24 16:19:12 +0200
add cmdline parameter to control the ubusx prefix type refs #15472
Base directory -> /
src/local_stub.c | 11 +++++++++++
src/main.c | 9 +++++++++
src/wsubus_client.h | 1 +
3 files changed, 21 insertions(+)
-------------------------------------------------------------------------------
commit db5477ba0ef4596b4b68c73a16c042f6d8400474
Author: Reidar Cederqvist <reidar.cederqvist@gmail.com>
Date: 2018-07-23 14:25:47 +0200
wsubus: match origin case insensitively refs #15501
Base directory -> /
src/wsubus.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 19a429e78c025c03ec11fb20229c389e453a8825
Author: Ionuț-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-07-20 15:32:37 +0200
prepare for: ubusx object prefix change from ip to mac refs #15472
The ubus objects that belong to other routers and are published
through ubusx have a prefix to identify the remote router.
This is normally the ip, for example:
192.168.1.201/router.system
This commit adds a function that can change this prefix to the
corresponding mac(as seen in the dhcp leases), for example:
06:22:07:67:75:9a/router.system
Note that this commit does not enable this functionality,
only adds it.
Base directory -> /
src/local_stub.c | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 79 insertions(+)
-------------------------------------------------------------------------------