Skip to content

Commit

Permalink
fix(ns-migration): limit tun name to 16 chars (#1060)
Browse files Browse the repository at this point in the history
Previously, the limit was wrongly set to 17

#1061
  • Loading branch information
gsanchietti authored Feb 4, 2025
1 parent 0efff70 commit cbbc735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ns-migration/files/scripts/openvpn_tunnels
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def import_tunnel(u, tunnel, ttype):
# Add management socket
u.set("openvpn", iname, 'management', f'/var/run/openvpn_{iname}.socket unix')
# Setup the device with max 16 characters
device = f'tun{name}'[:16]
device = f'tun{name}'[:15]
u.set("openvpn", iname, 'dev', device)
# Add interface to LAN
ovpn_interface = firewall.add_vpn_interface(u, name, device, link=f'openvpn/{iname}')
Expand Down

0 comments on commit cbbc735

Please sign in to comment.