[proxy] Use nanoseconds for proxy ID generation

This commit is contained in:
mlsmaycon
2026-06-10 11:39:08 +02:00
parent 2b57a7d43b
commit b662e7d318

View File

@@ -607,7 +607,7 @@ func (s *Server) initDefaults() {
// If no ID is set then one can be generated.
if s.ID == "" {
s.ID = "netbird-proxy-" + s.startTime.Format("20060102150405")
s.ID = fmt.Sprintf("netbird-proxy-%d", s.startTime.Nanosecond())
}
// Fallback version option in case it is not set.
if s.Version == "" {