Продакшн рефактор без легаси
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { InstallContext } from "../types/context";
|
||||
import type { RuntimeContext } from "../types/context";
|
||||
import { exists, readText, renderTemplate, writeText } from "../lib/fs";
|
||||
import { fail, info } from "../lib/log";
|
||||
import { runVisible } from "../lib/process";
|
||||
@@ -27,7 +27,7 @@ function isSafeNftablesEntrypoint(content: string): boolean {
|
||||
return effective === "flush ruleset";
|
||||
}
|
||||
|
||||
export async function applyFirewall(context: InstallContext): Promise<void> {
|
||||
export async function applyFirewall(context: RuntimeContext): Promise<void> {
|
||||
if (context.options.skipFirewall || !context.config.firewallEnabled) {
|
||||
info("firewall skipped by flag");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user