Jianhui Zhao 1d24c36d43 prevent accidental removal of existing device on duplicate ID conflict
When a new device connection is established, it creates a Device struct and
checks for ID conflicts. If a conflict exists, the new device connection
closes and triggers DelDevice via its defer statement. The original
implementation used LoadAndDelete which removed any device with the given ID,
causing the existing device to be incorrectly removed.

This changes the deletion logic to use CompareAndDelete, which verifies
both the device ID and the specific device instance. Now when a duplicate
connection closes, only the new (unregistered) device is attempted for removal,
preserving the existing device in the registry.

This ensures legitimate devices remain connected when duplicate connection
attempts occur.

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2025-08-14 12:17:11 +08:00
2025-07-21 21:18:26 +08:00
2025-08-08 19:56:51 +08:00
2025-08-08 19:56:51 +08:00
2018-09-08 17:16:04 +08:00
2025-08-08 19:56:51 +08:00
2018-03-14 22:37:04 +08:00
2018-03-14 22:37:04 +08:00
2025-08-09 13:54:32 +08:00
2025-08-09 13:54:32 +08:00
2019-09-03 14:57:16 +08:00
2025-08-13 23:04:24 +08:00
2025-08-13 23:04:24 +08:00
2025-08-08 19:56:51 +08:00
2025-08-08 19:56:51 +08:00
2025-08-09 13:54:32 +08:00

rttys

license PRs Welcome Issue Welcome Release Version Build Status Go Report Card Downloads Ask DeepWiki

🔗 This is the server component of the rtty project. For complete information please visit the main rtty client repository.

Official Website: https://rttys.net/

📖 About

rttys is the server-side component of the rtty remote terminal system. It provides a web-based management interface and handles connections from rtty clients running on remote devices.

🏗️ Project Structure

This repository contains only the server-side components:

  • Server binary: The main rttys server program
  • Web UI: Browser-based management interface
  • API: RESTful API for device management

Star History

Star History Chart

🤝 Contributing

If you would like to help making rttys better, see the CONTRIBUTING.md file.

S
Description
⚠️ ARCHIVED: Original GitHub repository no longer exists. Preserved as backup on 2026-02-27T09:20:46.591Z
Readme MIT 71 MiB
Languages
GO 49.1%
Vue 47.9%
Shell 2.6%
Dockerfile 0.4%