option for disable unveil/pledge

This commit is contained in:
user
2026-06-08 14:29:04 +00:00
parent 1333c923de
commit dbe0aab063
2 changed files with 6 additions and 2 deletions
+4 -2
View File
@@ -179,8 +179,10 @@ namespace util
#undef UNVEIL_DIR
unveil(NULL, NULL);
};
init_unevil();
init_pledge();
bool openbsd_unevil_enabled; i2p::config::GetOption("openbsd.unevil_enabled", openbsd_unevil_enabled);
bool openbsd_pledge_enabled; i2p::config::GetOption("openbsd.pledge_enabled", openbsd_pledge_enabled);
if(openbsd_unevil_enabled) init_unevil();
if(openbsd_pledge_enabled) init_pledge();
#endif
i2p::config::GetOption("daemon", isDaemon);