Actions
Regression #16160
closedPHP error after saving WireGuard tunnel with multiple addresses
Start date:
Due date:
% Done:
100%
Estimated time:
Plus Target Version:
25.03
Affected Version:
2.8.0
Affected Plus Version:
25.03
Affected Architecture:
Description
After adding a second address to a WireGuard tunnel (unassigned interface), the following alert is shown:
PHP ERROR: Type: 1, File: /usr/local/pkg/wireguard/includes/wg_api.inc, Line: 260, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/wireguard/includes/wg_api.inc:260 Stack trace: #0 [internal function]: {closure}('fc00:172:25:200...') #1 /usr/local/pkg/wireguard/includes/wg_api.inc(256): array_map(Object(Closure), Array) #2 /usr/local/pkg/wireguard/includes/wg.inc(677): wg_interface_update_addresses('tun_wg0', Array) #3 /usr/local/pkg/wireguard/includes/wg.inc(620): wg_tunnel_sync_by_name('tun_wg0', false) #4 /usr/local/www/wg/vpn_wg_tunnels.php(54): wg_tunnel_sync(Array, true, true) #5 {main} thrown @ 2025-04-24 14:44:31
Reported on the forum: https://forum.netgate.com/topic/197192/wireguard-tunnel-lost-its-peers
Related issues
Updated by Marcos M 12 days ago
- Status changed from New to Feedback
- % Done changed from 0 to 100
Fixed with f6dfb5a189c7e82b4f4962b7890f9c66eb36a088.
Updated by Marcos M 9 days ago
- Has duplicate Regression #16157: Wireguard with ipv6 interface breaks in 25.03 beta. added
Actions