mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-01 01:21:06 +03:00
show TCP/UDP/IPv6 in tooltip (#12613)
* add punch type log Signed-off-by: 21pages <sunboeasy@gmail.com> * show TCP/UDP/IPv6 in tooltip Signed-off-by: 21pages <sunboeasy@gmail.com> * Skip udp punch if udp nat port is 0 Signed-off-by: 21pages <sunboeasy@gmail.com> --------- Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
@@ -117,6 +117,13 @@ class Header: Reactor.Component {
|
||||
icon_conn = svg_insecure_relay;
|
||||
title_conn = translate("Relayed and unencrypted connection");
|
||||
}
|
||||
var stream_type = this.stream_type;
|
||||
if (stream_type == "Relay") {
|
||||
stream_type = "TCP";
|
||||
}
|
||||
if (stream_type) {
|
||||
title_conn += " (" + stream_type + ")";
|
||||
}
|
||||
var title = get_id();
|
||||
if (pi.hostname) title += "(" + pi.username + "@" + pi.hostname + ")";
|
||||
if ((pi.displays || []).length == 0) {
|
||||
@@ -695,10 +702,11 @@ function startChat() {
|
||||
chatbox = view.window(params);
|
||||
}
|
||||
|
||||
handler.setConnectionType = function(secured, direct) {
|
||||
handler.setConnectionType = function(secured, direct, stream_type) {
|
||||
header.update({
|
||||
secure_connection: secured,
|
||||
direct_connection: direct,
|
||||
stream_type: stream_type,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -178,8 +178,11 @@ impl InvokeUiSession for SciterHandler {
|
||||
self.call("setCursorPosition", &make_args!(cp.x, cp.y));
|
||||
}
|
||||
|
||||
fn set_connection_type(&self, is_secured: bool, direct: bool) {
|
||||
self.call("setConnectionType", &make_args!(is_secured, direct));
|
||||
fn set_connection_type(&self, is_secured: bool, direct: bool, stream_type: &str) {
|
||||
self.call(
|
||||
"setConnectionType",
|
||||
&make_args!(is_secured, direct, stream_type.to_string()),
|
||||
);
|
||||
}
|
||||
|
||||
fn set_fingerprint(&self, _fingerprint: String) {}
|
||||
|
||||
Reference in New Issue
Block a user