libnetwork: overlayutils: remove redundant init()

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2023-04-28 00:29:55 +02:00
parent 4e2f000b3c
commit 17feabcba0

View File

@@ -8,14 +8,10 @@ import (
var (
mutex sync.RWMutex
vxlanUDPPort uint32
vxlanUDPPort = defaultVXLANUDPPort
)
const defaultVXLANUDPPort = 4789
func init() {
vxlanUDPPort = defaultVXLANUDPPort
}
const defaultVXLANUDPPort uint32 = 4789
// ConfigVXLANUDPPort configures the VXLAN UDP port (data path port) number.
// If no port is set, the default (4789) is returned. Valid port numbers are