aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/monitor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/monitor.py b/src/monitor.py
index e77847e..f52d2cd 100644
--- a/src/monitor.py
+++ b/src/monitor.py
@@ -225,7 +225,7 @@ class Monitor:
iface = params[0]
dst = int(params[1], 16)
gw = int(params[2], 16)
- gw_str = socket.inet_ntoa(struct.pack("L", gw))
+ gw_str = socket.inet_ntoa(struct.pack("i", gw))
metric = int(params[6], 16)
mask = int(params[7], 16)
routes.append((iface, dst, mask, gw, metric))