network: allocate FirewallContext lazily

This commit is contained in:
Yu Watanabe
2021-03-23 14:37:05 +09:00
parent da00b84087
commit 4fb8a48ff0

View File

@@ -93,10 +93,6 @@ static int run(int argc, char *argv[]) {
if (r < 0)
return r;
r = fw_ctx_new(&m->fw_ctx);
if (r < 0)
log_warning_errno(r, "Could not initialize firewall, IPMasquerade= option not available: %m");
r = manager_start(m);
if (r < 0)
return log_error_errno(r, "Could not start manager: %m");