fix pledge / unveil in ix

This commit is contained in:
Aaron Bieber 2021-02-09 07:44:13 -07:00
parent dae42ab7e1
commit ae32741c96

4
bin/ix
View File

@ -8,8 +8,8 @@ if ($^O eq "openbsd") {
require OpenBSD::Pledge; require OpenBSD::Pledge;
require OpenBSD::Unveil; require OpenBSD::Unveil;
unveil("/", "") or die; OpenBSD::Unveil::unveil("/", "") or die;
pledge(qw( stdio dns inet rpath )) or die; OpenBSD::Pledge::pledge(qw( stdio dns inet rpath )) or die;
} }
my $http = HTTP::Tiny->new(); my $http = HTTP::Tiny->new();