Previously, the render code attempted to add the class "hidden" to the button
row, the button row which can have a persistent visibility style applied via CSS
so the "hidden" class attribute was overridden. Set the style.display of the row
instead which now hides the button row.
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This adds the possibility to set our own L2TP hostname in the advanced
tab. It's needed if the peer only allows certain hostnames to connect.
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
IPv6 prefix length is normally valid in the range 0–64.
Additionally, /128 is a special case that needs to be supported.
Signed-off-by: Arayuki Mago <ms@missing233.com>
follow-up to: aa955d6465
Minor refactor of ucode, and some GUI fixes to ensure certificates are
written properly.
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Clear, crisp, resolution independent vector graphics replace the trusty
microscopic PNG. Some minor CSS changes were needed to constrain images
in some locations to make sure they don't consume too much space.
Iconography taken from Mate desktop theme with minor adjustments:
https://github.com/mate-desktop/mate-icon-theme/
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Added the legacy peer name detection algorithm. If the new algorithm
fails to find a peer's name (e.g. when the IP address has been changed)
then the legacy value will be used.
Signed-off-by: Tom Haley <this_username_has_been_taken2@proton.me>
Fix regressions from f3d26a2a56:
1) It is now possible again to leave the keepalive option empty.
2) It is possible now to set an interval different from 1 without the
need to explicitly set the failure threshold.
Signed-off-by: Erik Karlsson <erik.karlsson@iopsys.eu>
fwmark is used internally during firewall processing, and no mark
remains on egress. Yes, the fwmark is to identify egress encrypted
packets, but no egress packet itself contains this value, and
this metadata disappears once the packet leaves the firewall.
The current wording is ambiguous, since "for" does a lot of lifting.
"during" helps limit the scope of this definition.
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Allow the DHCPv6 client to accept /64 prefix via SLAAC and extend it on downstream interface (RFC 7278)
useful for ISPs that only distribute /64 IPv6 prefixes through SLAAC.
Signed-off-by: Arayuki Mago <ms@missing233.com>
shellquote method is introduced so an injected code cannot be executed by the popen command.
Signed-off-by: Tom Haley <this_username_has_been_taken2@proton.me>
This commit fixes incorrect peer detection when using IP v6 by deleting all the square the square brackets from the wgHost variable.
Signed-off-by: Tom Haley <this_username_has_been_taken2@proton.me>
Fixed bug with incorrect peer name detection on `Status -> WireGuard`
page when more than one peer with the same public key exist:
1. Peers are now tested not only by public key, but also by
enabled/disabled status, peer host (both IP and FQDN are supported)
and port.
2. Added required `resolveip` dependency.
Closes#7342
Signed-off-by: @this-username-has-been-taken
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
ModemManager protocol has supported setting initial EPS bearer since
package commit [1], so lets expose the same support via LuCI as well.
[1] af12147f8c
Signed-off-by: Damir Samardzic <damir.samardzic@sartura.hr>
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
This has never worked because the option 'auth' is not known to the
modemmanger proto handler. The correct uci name is 'allowedauth' and is
also a uci list option, so that several options can be selected.
This commit fixes this bug.
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
If for some reason luci-lib-uqr is absent, the GUI shows that the proto
handler needs installing (since it now has a dep which is missing).
Suitable action is to install the lib or remove/install wireguard again.
Signed-off-by: Paul Donald <newtwen+github@gmail.com>