Wireguard error log

hi
I’m posting errors in the log

[Mon Jun 23 16:21:16 2025] wireguard.cgi: Use of uninitialized value in string eq at /srv/web/ipfire/cgi-bin/wireguard.cgi line 45.
[Mon Jun 23 16:21:16 2025] wireguard.cgi: Use of uninitialized value in string eq at /srv/web/ipfire/cgi-bin/wireguard.cgi line 104.
[Mon Jun 23 16:21:16 2025] wireguard.cgi: Use of uninitialized value in string eq at /srv/web/ipfire/cgi-bin/wireguard.cgi line 125.
[Mon Jun 23 16:21:16 2025] wireguard.cgi: Use of uninitialized value $cgiparams{"ACTION"} in string eq at /srv/web/ipfire/cgi-bin/wireguard.cgi line 168.
[Mon Jun 23 16:21:16 2025] wireguard.cgi: Use of uninitialized value $cgiparams{"ACTION"} in string eq at /srv/web/ipfire/cgi-bin/wireguard.cgi line 237.
[Mon Jun 23 16:21:16 2025] wireguard.cgi: Use of uninitialized value $cgiparams{"ACTION"} in string eq at /srv/web/ipfire/cgi-bin/wireguard.cgi line 399.
[Mon Jun 23 16:21:16 2025] wireguard.cgi: Use of uninitialized value $cgiparams{"ACTION"} in string eq at /srv/web/ipfire/cgi-bin/wireguard.cgi line 541.
[Mon Jun 23 16:21:16 2025] wireguard.cgi: Use of uninitialized value in string eq at /srv/web/ipfire/cgi-bin/wireguard.cgi line 737.
[Mon Jun 23 16:21:16 2025] wireguard.cgi: Use of uninitialized value $cgiparams{"ACTION"} in string eq at /srv/web/ipfire/cgi-bin/wireguard.cgi line 753.
[Tue Jun 24 14:56:30 2025] wireguard.cgi: "my" variable %checked masks earlier declaration in same scope at /srv/web/ipfire/cgi-bin/wireguard.cgi line 1057.
[Tue Jun 24 14:56:30 2025] wireguard.cgi: "my" variable $key masks earlier declaration in same scope at /srv/web/ipfire/cgi-bin/wireguard.cgi line 1459.
[Tue Jun 24 14:56:30 2025] wireguard.cgi: Name "Wireguard::DEFAULT_PORT" used only once: possible typo at /srv/web/ipfire/cgi-bin/wireguard.cgi line 1363.
[Tue Jun 24 14:56:30 2025] wireguard.cgi: Name "LANG::tr" used only once: possible typo at /srv/web/ipfire/cgi-bin/wireguard.cgi line 442.

ty

1 Like

These are only warnings. You shouldn’t experience errors with these.

Thanks for letting us know though!

Cheers,
A G

Yes, these are warnings only. But are they checked, yet?
Perl is language which guesses the impact of the programmer very well. In most case the guess is right, but one should check these messages anyway.

EDIT:
I have checked the warnings. Most can be avoided with a default setting of $cgiparams{ACTION} to "".
The mask warnings are avoidable, if the variables are declared only once ( copy and paste? :wink: ).
The used only once warnings have to reasons

  • Wireguard::DEFAULT_PORT is really used only once,
  • LANG::tr is a typo. It should read Lang::tr
2 Likes