mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-26 15:52:10 +01:00
Remove interface name length restriction
Removed truncation of OpenVPN interface name if it exceeds 15 characters.
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user