Skip to content
Commit 0be0f069 authored by Vladislav Grigoryev's avatar Vladislav Grigoryev
Browse files

luci-mod-network: fix route and rule options



Allow adding routes with unspecified interface.
This is required for prohibit, blackhole and unreachable routes.

Allow adding routes with loopback interface.
This can work as a blackhole route.

Fix netmask to prefix conversion for the routes.
Identify the IP family by the UCI section type.

Avoid setting the routing table textvalue for the rules.
The rules should target none table unless specified otherwise.

Signed-off-by: default avatarVladislav Grigoryev <vg.aetera@gmail.com>
parent 4f7db0e2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment