# "local" is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
# IPv6 local connections:
host all all ::1/128 trust
host all all адрес-компьютера-друга/32 trust
You've run into a bug in perl 5.30, the version used in Ubuntu 20.04 LTS. The bug has been fixed upstream but that fix has not yet been backported to Ubuntu.
If you haven't got a need to run Perl code inside nginx (as most people do not) then you can uninstall the package libnginx-mod-http-perl and restart nginx to avoid the problem. This package was pulled in by the virtual package nginx-extras but most people don't actually run perl in the web server and so don't need it.
libnginx-mod-http-perl
.