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
Actions