note need to support >1 default route

phoen
Daniel Barlow 2022-04-05 21:16:31 +00:00
parent 3d5d1078c2
commit 8c34f9429e
1 changed files with 4 additions and 0 deletions

View File

@ -71,6 +71,10 @@
"no" event))
{:event :newroute}
;; XXX there may be >1 route to any given destination,
;; (e.g wwan and wlan both have default route)
;; we probably need to store all of them and
;; distinguish by metric
(tset routes (or event.dst "default") event)
{} (print :unhandled event.event)