mirror of
https://github.com/zhaojh329/rttys.git
synced 2026-02-27 09:53:21 +08:00
1d24c36d43e81ee3200de30a03cae2ef48aaed09
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>
rttys
🔗 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
🤝 Contributing
If you would like to help making rttys better, see the CONTRIBUTING.md file.
Languages
GO
49.1%
Vue
47.9%
Shell
2.6%
Dockerfile
0.4%



