From 45a5de27193fa03891acab0ce335da359fc96af9 Mon Sep 17 00:00:00 2001 From: Nathan Brown Date: Thu, 6 Feb 2020 21:17:43 -0800 Subject: [PATCH] Print the udp listen address on startup (#181) --- interface.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/interface.go b/interface.go index 9324e2c..0ecc0e8 100644 --- a/interface.go +++ b/interface.go @@ -97,8 +97,13 @@ func (f *Interface) Run(tunRoutines, udpRoutines int, buildVersion string) { } f.version = buildVersion + addr, err := f.outside.LocalAddr() + if err != nil { + l.WithError(err).Error("Failed to get udp listen address") + } + l.WithField("interface", f.inside.Device).WithField("network", f.inside.Cidr.String()). - WithField("build", buildVersion). + WithField("build", buildVersion).WithField("udpAddr", addr). Info("Nebula interface is active") // Launch n queues to read packets from udp