mirror of
https://github.com/slackhq/nebula.git
synced 2025-12-05 18:20:48 -08:00
Use an interface for udp conns (#901)
This commit is contained in:
parent
928731acfe
commit
3bbf5f4e67
17 changed files with 95 additions and 68 deletions
2
main.go
2
main.go
|
|
@ -147,7 +147,7 @@ func Main(c *config.C, configTest bool, buildVersion string, logger *logrus.Logg
|
|||
}
|
||||
|
||||
// set up our UDP listener
|
||||
udpConns := make([]*udp.Conn, routines)
|
||||
udpConns := make([]udp.Conn, routines)
|
||||
port := c.GetInt("listen.port", 0)
|
||||
|
||||
if !configTest {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue