fix: rename database insert fields for consistency and clarity
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 7s

This commit is contained in:
2025-11-27 17:41:41 +01:00
parent dba0c5b398
commit 5214f1a1a4

View File

@@ -159,16 +159,16 @@ async def _db_insert_packet_coroutine(pkt_info: dict):
async with pool.acquire() as conn: async with pool.acquire() as conn:
await conn.execute(f""" await conn.execute(f"""
INSERT INTO {TABLE_NAME}( INSERT INTO {TABLE_NAME}(
interface, iface,
direction, direction,
src_mac, src_mac,
dst_mac, dst_mac,
eth_type, eth_type,
src_ip, src_ip,
dst_ip, dst_ip,
ip_protocol, protocol,
packet_len, length,
raw_packet raw
) VALUES($1,$2,$3,$4,$5,$6,$7,$8,$9,$10) ) VALUES($1,$2,$3,$4,$5,$6,$7,$8,$9,$10)
""", """,
pkt_info.get("ingress"), pkt_info.get("ingress"),