Page MenuHomeVyOS Platform

Commit fails if OpenVPN is setup in server mode and there are clients with fixed IP addresses
Closed, ResolvedPublicBUG

Description

# set interfaces openvpn vtun0 server client bar ip 10.35.0.10
# commit
[ interfaces openvpn vtun0 ]
Can't use string ("0") as a HASH ref while "strict refs" in use at /usr/lib/perl5/NetAddr/IP/Lite.pm line 1040.

[[interfaces openvpn vtun0]] failed
Commit failed

Details

Difficulty level
Easy (less than an hour)
Version
1.1.8-rc1
Why the issue appeared?
Will be filled on close

Event Timeline

The issue was with variable scoping, the variable for server subnet that was supposed to be global was instead updated in the local scope.

dmbaturin claimed this task.