Remove interface name length restriction

Removed truncation of OpenVPN interface name if it exceeds 15 characters.
This commit is contained in:
Alexandre
2026-02-08 11:16:24 +01:00
committed by GitHub
parent ed97320d8d
commit 2d4eaaa44c

View File

@@ -85,10 +85,6 @@ elif [[ ${interface_name} = "tun" ]]; then
elif [[ ${interface_name} = "tap" ]]; then
interface_name='tap0'
fi
if [[ ${#interface_name} -gt 15 ]]; then
bashio::log.warning "OpenVPN interface name '${interface_name}' exceeds 15 characters; truncating to '${interface_name:0:15}'."
interface_name="${interface_name:0:15}"
fi
openvpn_runtime_config="${OPENVPN_STATE_DIR}/${interface_name}.conf"