From b001f1ebca56ad3b55d7f9e149f8dc30d7e6eade Mon Sep 17 00:00:00 2001 From: litinoveweedle <15144712+litinoveweedle@users.noreply.github.com> Date: Mon, 26 Jan 2026 20:24:29 +0100 Subject: [PATCH] Add wireguard MTU option + fix OpenVPN suffix to both conf and ovn --- qbittorrent/config.yaml | 2 +- qbittorrent/rootfs/usr/local/sbin/vpn | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/qbittorrent/config.yaml b/qbittorrent/config.yaml index 7c8ab5f4a..432b70232 100644 --- a/qbittorrent/config.yaml +++ b/qbittorrent/config.yaml @@ -130,7 +130,7 @@ schema: localdisks: str? networkdisks: str? openvpn_alt_mode: bool? - openvpn_config: match(^\w+\.ovpn$)? + openvpn_config: match(^\w+\.(ovpn|conf)$)? openvpn_enabled: bool? openvpn_password: str? openvpn_username: str? diff --git a/qbittorrent/rootfs/usr/local/sbin/vpn b/qbittorrent/rootfs/usr/local/sbin/vpn index 80dc1eb65..b6bf9e361 100644 --- a/qbittorrent/rootfs/usr/local/sbin/vpn +++ b/qbittorrent/rootfs/usr/local/sbin/vpn @@ -220,6 +220,11 @@ _wireguard_up() { else _cmd "wg set ${config["Interface"]} peer ${config["PublicKey"]} endpoint ${config["EndpointIP"]}:${config["EndpointPort"]} allowed-ips ${allowed_ips}" || return 1 fi + + if [ -v config["MTU"] ] && [ -n "${config["MTU"]}" ]; then + _cmd "ip link set ${config["Interface"]} mtu ${config["MTU"]}" || return 1 + fi + _cmd "ip link set ${config["Interface"]} up" || return 1 _routing_add }