firewall fix, preparing for minor release

This commit is contained in:
Domingo Dirutigliano
2025-02-18 14:37:11 +01:00
parent 5fd518ed9c
commit ece058d533
6 changed files with 21 additions and 14 deletions

View File

@@ -24,7 +24,7 @@ db = SQLite('db/firewall-rules.db', {
'action': 'VARCHAR(10) NOT NULL CHECK (action IN ("accept", "drop", "reject"))',
},
'QUERY':[
"CREATE UNIQUE INDEX IF NOT EXISTS unique_rules ON rules (proto, src, dst, port_src_from, port_src_to, port_dst_from, port_dst_to, mode);"
"CREATE UNIQUE INDEX IF NOT EXISTS unique_rules ON rules (proto, src, dst, port_src_from, port_src_to, port_dst_from, port_dst_to, mode, `table`);"
]
})

View File

@@ -39,7 +39,7 @@ class ServiceAddResponse(BaseModel):
status:str
service_id: str|None = None
app = APIRouter()
#app = APIRouter() Not released in this version
db = SQLite('db/nft-pyfilters.db', {
'services': {