Print the udp listen address on startup (#181)

This commit is contained in:
Nathan Brown 2020-02-06 21:17:43 -08:00 committed by GitHub
parent 2d24ef7166
commit 45a5de2719
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -97,8 +97,13 @@ func (f *Interface) Run(tunRoutines, udpRoutines int, buildVersion string) {
} }
f.version = buildVersion 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()). 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") Info("Nebula interface is active")
// Launch n queues to read packets from udp // Launch n queues to read packets from udp