mirror of
https://github.com/juanfont/headscale.git
synced 2026-09-29 19:39:37 +09:00
3746ad20db
resolveSingleUser reported every non-single result as "multiple users match query", including zero matches. An explicit --identifier 0 was sent to the API, which treats id=0 as no filter, so it listed every user and failed as ambiguous. Return a not-found error for zero matches, list the matching users when several match, and reject a non-positive identifier before calling the API.