rustdesk / rustdesk/rustdesk-server-pro
Duplicate Device Issue
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 317
- Forks
- 119
- PR merge metrics
- No merged PRs in 30d
Description
We are maxing out our device limit (2500) due to device being duplicated when they are rebuilt.
Our custom client uses the allow-hostname-as-id=Y setting.
When the device is initially built, an entry is created in the device list with an ID that is a preset/fixed hostname (HOSTNAME1234).
When the device is rebuilt, it goes back into the device list with the default RustDesk ID (1680798129) instead of the hostname.
The hostname remains in the list, but that device entry is offline. The online device is the new entry with the default DustDesk ID (1680798129).
The allow-hostname-as-id=Y setting seems to fail due to the device ID (hostname) already existing.
The hostname is still visible under the device column (username@device_name) but the issue is the duplicated/maxing out the device limit.
We are currently running on RustDesk Server Pro 1.7.7 at the moment.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the device rebuild flow on RustDesk Server Pro 1.7.7 with allow-hostname-as-id=Y, comparing the offline hostname entry with the online default-ID entry. Trace the device registration and list-handling entry points; done means rebuilding a device does not create a duplicate or inflate the 2500-device limit.
Written by the indexing model from the issue text.
Assessment
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100