mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-09-21 11:50:59 +03:00
cm: update a port-forward row's targets as tunnel channels come and go
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EZ49AbZJYfm8NTp5yDPMab
This commit is contained in:
@@ -434,6 +434,13 @@ handler.addConnection = function(id, is_file_transfer, is_view_camera, is_termin
|
||||
}
|
||||
}
|
||||
|
||||
handler.updatePortForward = function(id, port_forward) {
|
||||
connections.map(function(c) {
|
||||
if (c.id == id) c.port_forward = port_forward;
|
||||
});
|
||||
update();
|
||||
}
|
||||
|
||||
handler.removeConnection = function(id, close) {
|
||||
var i = -1;
|
||||
connections.map(function(c, idx) {
|
||||
|
||||
Reference in New Issue
Block a user