Skip to content

Commit

Permalink
Merge branch 'master' into dhcp
Browse files Browse the repository at this point in the history
  • Loading branch information
jkroepke authored Jan 18, 2025
2 parents 6ba5f6c + f0f3d0d commit 46aad97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/collector/net/net.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ func (c *Collector) collectNICAddresses(ch chan<- prometheus.Metric) error {
return err
}

convertNicName := strings.NewReplacer("(", "[", ")", "]")
convertNicName := strings.NewReplacer("(", "[", ")", "]", "#", "_")

for _, nicAdapterAddress := range nicAdapterAddresses {
friendlyName := windows.UTF16PtrToString(nicAdapterAddress.FriendlyName)
Expand Down

0 comments on commit 46aad97

Please sign in to comment.