From: Dan Fuhry Date: Thu, 6 Nov 2025 11:56:26 +0000 (-0500) Subject: [machines_agent] parse mac address before posting to /api/host/seen X-Git-Url: https://go.fuhry.dev/?a=commitdiff_plain;h=e90b3d966b2c1f31d73e518d138b7090b7e488e8;p=runtime.git [machines_agent] parse mac address before posting to /api/host/seen --- diff --git a/machines/machines_agent/main.go b/machines/machines_agent/main.go index af9546d..69a28c8 100644 --- a/machines/machines_agent/main.go +++ b/machines/machines_agent/main.go @@ -80,7 +80,8 @@ func main() { } if *commitIPAddress != "" && *commitMACAddress != "" { - url := fmt.Sprintf("host/seen/%s/%s", *commitMACAddress, *commitIPAddress) + mac := machines.ParseMACAddress(*commitMACAddress) + url := fmt.Sprintf("host/seen/%s/%s", mac.Standard(), *commitIPAddress) host := &machines.Host{} ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) defer cancel()