micromdm / nanodep

NanoDEP is a set of tools and a Go library powering them for communicating with Apple's Device Enrollment Program (DEP) API servers.
MIT License
33 stars 12 forks source link

[BUG]depsyncer callback error dep_name #69

Closed JieAnthony closed 3 months ago

JieAnthony commented 3 months ago

When multiple DEPNAME are configured, the device_response_event.dep_name in the callback data is always the last one.

example

./nanodep/depsyncer-linux-amd64 -webhook-url "http://webhook" -storage mysql -storage-dsn "root:root@tcp(host:3306)/nanodep" -limit 100 -duration 600 foo bar

device_response_event.dep_name in the callback is always bar

JieAnthony commented 3 months ago

@jessepeterson

jessepeterson commented 3 months ago

@JieAnthony @radiohertz can you verify that 615551d0d38975509840e813efcaadca42692511 fixes the issue?

JieAnthony commented 3 months ago

@jessepeterson fixed! Thank you!!!

JieAnthony commented 3 months ago

Thank @jessepeterson @radiohertz Is it possible to release a latest version for this fix?