chiark / gitweb /
fix crash on discarding packets
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 21 Apr 2017 21:20:07 +0000 (22:20 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 21 Apr 2017 21:20:07 +0000 (22:20 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
hippotatd

index 666fc1b..e2bed42 100755 (executable)
--- a/hippotatd
+++ b/hippotatd
@@ -64,7 +64,7 @@ def route(packet, iface, saddr, daddr):
   elif daddr == c.vaddr or daddr not in c.vnetwork:
     lt('inbound')
     queue_inbound(ipif, packet)
-  elif daddr == c.relay:
+  elif daddr == c.vrelay:
     lt('discard relay')
     log_discard(packet, iface, saddr, daddr, 'relay')
   else: