test
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 8s

This commit is contained in:
2026-01-10 21:36:23 +01:00
parent 55e1920999
commit a15c36242d

View File

@@ -20,7 +20,7 @@ from enum import Enum
# pyroute2 nftables # pyroute2 nftables
from pyroute2 import nftables from pyroute2 import nftables
router = APIRouter(prefix="/nft", tags=["nftables"]) router = APIRouter()
logger = logging.getLogger("nftables") logger = logging.getLogger("nftables")
logger.debug("nftables stateless-comment-enums router loaded") logger.debug("nftables stateless-comment-enums router loaded")
@@ -89,7 +89,7 @@ class ReplaceResult(BaseModel):
# ---------------------- nft wrapper ---------------------- # ---------------------- nft wrapper ----------------------
class NFT: class NFT:
def __init__(self): def __init__(self):
self.nft = nftables.NFTables() self.nft = nftables.main.NFTables()
def run(self, cmd: str) -> Dict[str, Any]: def run(self, cmd: str) -> Dict[str, Any]:
""" """