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 }