fix: update database insertion query to use concise column names in packets table
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 7s
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 7s
This commit is contained in:
@@ -69,16 +69,16 @@ async def db_insert_packet(pkt_info: dict):
|
|||||||
conn = await asyncpg.connect(DB_DSN)
|
conn = await asyncpg.connect(DB_DSN)
|
||||||
await conn.execute("""
|
await conn.execute("""
|
||||||
INSERT INTO packets(
|
INSERT INTO packets(
|
||||||
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,
|
||||||
nft_verdict,
|
ebpf_verdict,
|
||||||
raw_packet
|
raw_packet
|
||||||
) VALUES($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11)
|
) VALUES($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11)
|
||||||
""",
|
""",
|
||||||
|
|||||||
Reference in New Issue
Block a user