Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
071d9b1eff | ||
|
|
f1fa432bc8 | ||
|
|
538126d42c | ||
|
|
9c6d3fcb4f | ||
|
|
c230c57139 | ||
|
|
e614de83fc | ||
|
|
e910029f51 |
+66
-57
@@ -154,7 +154,7 @@ prebuild)
|
||||
.github/workflows/bridge.yml)"
|
||||
|
||||
FLUTTER_BRIDGE_VERSION="$(yq -r \
|
||||
.env.FLUTTER_VERSION \
|
||||
'.jobs.generate_bridge.strategy.matrix.job[] | select(.["artifact-name"] == "bridge-artifact") | .["flutter-version"]' \
|
||||
.github/workflows/bridge.yml)"
|
||||
|
||||
FLUTTER_RUST_BRIDGE_VERSION="$(yq -r \
|
||||
@@ -306,67 +306,69 @@ prebuild)
|
||||
|
||||
git apply res/fdroid/patches/*.patch
|
||||
|
||||
# If Flutter version used to generate bridge files differs from Flutter
|
||||
# version used to compile Rustdesk library, generate bridge using the
|
||||
# `FLUTTER_BRIDGE_VERSION` an restore the pubspec later
|
||||
# Generate bridge files using `FLUTTER_BRIDGE_VERSION`, which may differ
|
||||
# from the Flutter version used to compile RustDesk library, and restore
|
||||
# the pubspec later
|
||||
|
||||
if [ "${FLUTTER_VERSION}" != "${FLUTTER_BRIDGE_VERSION}" ]; then
|
||||
# Find first libclang.so and set BRIDGE_LLVM_PATH
|
||||
# Find first libclang.so and set BRIDGE_LLVM_PATH
|
||||
|
||||
BRIDGE_LLVM_PATH="$(find /usr/lib/ -name libclang.so | head -n1)"
|
||||
BRIDGE_LLVM_PATH="$(find /usr/lib/ -name libclang.so | head -n1)"
|
||||
|
||||
if [ -z "${BRIDGE_LLVM_PATH}" ]; then
|
||||
echo 'ERROR: Can not find libclang.so for bridge generator!' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
BRIDGE_LLVM_PATH="$(dirname "${BRIDGE_LLVM_PATH}")"
|
||||
BRIDGE_LLVM_PATH="$(dirname "${BRIDGE_LLVM_PATH}")"
|
||||
|
||||
# Install Flutter bridge version
|
||||
|
||||
prepare_flutter "${FLUTTER_BRIDGE_VERSION}" "${HOME}/flutter"
|
||||
|
||||
# Save changes
|
||||
|
||||
git add .
|
||||
|
||||
# Edit pubspec to make flutter bridge version work
|
||||
|
||||
sed \
|
||||
-i \
|
||||
-e 's/extended_text: 14.0.0/extended_text: 13.0.0/g' \
|
||||
flutter/pubspec.yaml
|
||||
|
||||
# Download Flutter dependencies
|
||||
|
||||
pushd flutter
|
||||
|
||||
flutter clean
|
||||
flutter packages pub get
|
||||
|
||||
popd # flutter
|
||||
|
||||
# Generate FFI bindings
|
||||
|
||||
flutter_rust_bridge_codegen \
|
||||
--rust-input ./src/flutter_ffi.rs \
|
||||
--dart-output ./flutter/lib/generated_bridge.dart \
|
||||
--llvm-path "${BRIDGE_LLVM_PATH}"
|
||||
|
||||
# Add bridge files to save-list
|
||||
|
||||
git add -f ./flutter/lib/generated_bridge.* ./src/bridge_generated.*
|
||||
|
||||
# Restore everything
|
||||
|
||||
git checkout '*'
|
||||
git clean -dffx
|
||||
git reset
|
||||
|
||||
unset BRIDGE_LLVM_PATH
|
||||
if [ -z "${BRIDGE_LLVM_PATH}" ]; then
|
||||
echo 'ERROR: Can not find libclang.so for bridge generator!' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
BRIDGE_LLVM_PATH="$(dirname "${BRIDGE_LLVM_PATH}")"
|
||||
BRIDGE_LLVM_PATH="$(dirname "${BRIDGE_LLVM_PATH}")"
|
||||
|
||||
# Install Flutter bridge version
|
||||
|
||||
# Unbraced on purpose: F-Droid recipes rewrite the braced form with sed to
|
||||
# pin a version, but the bridge generator only works with the Flutter
|
||||
# version bridge.yml uses
|
||||
|
||||
prepare_flutter "$FLUTTER_BRIDGE_VERSION" "${HOME}/flutter"
|
||||
|
||||
# Save changes
|
||||
|
||||
git add .
|
||||
|
||||
# Edit pubspec to make flutter bridge version work
|
||||
|
||||
sed \
|
||||
-i \
|
||||
-e 's/extended_text: 14.0.0/extended_text: 13.0.0/g' \
|
||||
flutter/pubspec.yaml
|
||||
|
||||
# Download Flutter dependencies
|
||||
|
||||
pushd flutter
|
||||
|
||||
flutter clean
|
||||
flutter packages pub get
|
||||
|
||||
popd # flutter
|
||||
|
||||
# Generate FFI bindings
|
||||
|
||||
flutter_rust_bridge_codegen \
|
||||
--rust-input ./src/flutter_ffi.rs \
|
||||
--dart-output ./flutter/lib/generated_bridge.dart \
|
||||
--llvm-path "${BRIDGE_LLVM_PATH}"
|
||||
|
||||
# Add bridge files to save-list
|
||||
|
||||
git add -f ./flutter/lib/generated_bridge.* ./src/bridge_generated.*
|
||||
|
||||
# Restore everything
|
||||
|
||||
git checkout '*'
|
||||
git clean -dffx
|
||||
git reset
|
||||
|
||||
unset BRIDGE_LLVM_PATH
|
||||
|
||||
# Install Flutter version for RustDesk library build
|
||||
|
||||
prepare_flutter "${FLUTTER_VERSION}" "${HOME}/flutter"
|
||||
@@ -379,6 +381,13 @@ prebuild)
|
||||
flutter/android/build.gradle \
|
||||
flutter/android/app/build.gradle
|
||||
|
||||
# Gradle 8 / AGP 8 thrash in the default 1 GiB heap; raise it as CI does
|
||||
|
||||
sed \
|
||||
-i \
|
||||
-e 's/org.gradle.jvmargs=-Xmx1024M/org.gradle.jvmargs=-Xmx2g/g' \
|
||||
flutter/android/gradle.properties
|
||||
|
||||
# `firebase_analytics` is not in these files now, but we still keep the following lines.
|
||||
|
||||
sed \
|
||||
|
||||
@@ -418,6 +418,13 @@ class _DesktopTabState extends State<DesktopTab>
|
||||
}
|
||||
}
|
||||
|
||||
// On Linux, GTK destroys the window on a close request unless prevent-close
|
||||
// is on. It is off for the cm and install windows, and onActiveWindowChanged()
|
||||
// turns it off to quit, so the window can no longer be saved or hidden.
|
||||
// https://github.com/rustdesk/rustdesk/issues/16512
|
||||
Future<bool> _isLinuxWindowClosed() async =>
|
||||
isLinux && isMainWindow && !await windowManager.isPreventClose();
|
||||
|
||||
@override
|
||||
void onWindowMoved() {
|
||||
_saveFrame();
|
||||
@@ -465,6 +472,8 @@ class _DesktopTabState extends State<DesktopTab>
|
||||
});
|
||||
}
|
||||
|
||||
if (await _isLinuxWindowClosed()) return;
|
||||
|
||||
await _saveFrame(flush: true);
|
||||
|
||||
// hide window on close
|
||||
@@ -472,6 +481,7 @@ class _DesktopTabState extends State<DesktopTab>
|
||||
if (rustDeskWinManager.getActiveWindows().contains(kMainWindowId)) {
|
||||
await rustDeskWinManager.unregisterActiveWindow(kMainWindowId);
|
||||
}
|
||||
if (await _isLinuxWindowClosed()) return;
|
||||
// macOS specific workaround, the window is not hiding when in fullscreen.
|
||||
if (isMacOS && await windowManager.isFullScreen()) {
|
||||
await windowManager.setFullScreen(false);
|
||||
|
||||
+1
-1
Submodule libs/hbb_common updated: 229b904508...5d52530b63
+5
-1
@@ -68,6 +68,7 @@ use hbb_common::{
|
||||
time::{interval, Duration, Instant},
|
||||
},
|
||||
webrtc::WebRTCStream,
|
||||
websocket::{check_ws, is_ws_endpoint},
|
||||
AddrMangle, ResultType, Stream,
|
||||
};
|
||||
use base::{
|
||||
@@ -1848,8 +1849,11 @@ impl Client {
|
||||
conn_type: ConnType,
|
||||
ipv4: bool,
|
||||
) -> ResultType<Stream> {
|
||||
// The proxy's address family does not constrain the relay target.
|
||||
let relay_server = check_port(relay_server, RELAY_PORT);
|
||||
let use_ws_proxy = Config::is_proxy() && is_ws_endpoint(&check_ws(&relay_server));
|
||||
let mut conn = connect_tcp(
|
||||
ipv4_to_ipv6(check_port(relay_server, RELAY_PORT), ipv4),
|
||||
ipv4_to_ipv6(relay_server, ipv4 || use_ws_proxy),
|
||||
CONNECT_TIMEOUT,
|
||||
)
|
||||
.await
|
||||
|
||||
+18
-1
@@ -62,7 +62,7 @@ pub fn get_custom_server_from_string(s: &str) -> ResultType<CustomServer> {
|
||||
* This allows using a ',' (comma) symbol as a final delimiter.
|
||||
*/
|
||||
if s.to_lowercase().contains("host=") {
|
||||
let stripped = &s[s.to_lowercase().find("host=").unwrap_or(0)..s.len()];
|
||||
let stripped = &s[s.to_ascii_lowercase().find("host=").unwrap_or(0)..s.len()];
|
||||
let strs: Vec<&str> = stripped.split(",").collect();
|
||||
let mut host = String::default();
|
||||
let mut key = String::default();
|
||||
@@ -232,4 +232,21 @@ mod test {
|
||||
get_custom_server_from_string("=0nI900VsFHZVBVdIlncwpHS4V0bOZ0dtVldrpVO4JHdCp0YV5WdzUGZzdnYRVjI6ISeltmIsISMuEjLx4SMiojI0N3boJye.exe")
|
||||
.unwrap(), lic);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_filename_license_string_in_non_ascii_path() {
|
||||
// Windows passes the full exe path, and `İ` grows from 2 to 3 bytes when lowercased.
|
||||
assert_eq!(
|
||||
get_custom_server_from_string(
|
||||
r"C:\Users\İsmail\Downloads\rustdesk-host=server.example.net,key=Zm9vYmFyLiwyCg==.exe"
|
||||
)
|
||||
.unwrap(),
|
||||
CustomServer {
|
||||
host: "server.example.net".to_owned(),
|
||||
key: "Zm9vYmFyLiwyCg==".to_owned(),
|
||||
api: "".to_owned(),
|
||||
relay: "".to_owned(),
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
+32
-32
@@ -781,37 +781,37 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Relay fallback delay in seconds", "Ritardo fallback relay (secondi)"),
|
||||
("relay-fallback-delay-tip", "Quanto tempo una connessione relay già attiva attende la connessione WebRTC diretta prima di essere usata. Aumentalo per dare a una connessione diretta lenta più tempo per funzionare; diminuiscilo per passare prima al relay sulle reti in cui non è possibile effettuare una connessione diretta. Lascia vuoto per il valore predefinito di 2,5 secondi."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Per avviare una chiamata vocale, attiva nella pagina 'Condividi schermo' la voce 'Cattura audio'."),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("Keyboard shortcuts", "Scorciatoie da tastiera"),
|
||||
("Configure shortcuts...", "Configura scorciatoie..."),
|
||||
("Enable keyboard shortcuts in remote session", "Nella sessione remota abilita scorciatoie da tastiera"),
|
||||
("shortcut-page-description", "Associa una combinazione di tasti a ciascuna azione della sessione riportata di seguito. Ogni associazione deve includere almeno un modificatore."),
|
||||
("shortcut-passthrough-tip", "Quando è attiva, ogni combinazione associata viene inoltrata alla sessione remota. Utile quando un'associazione entra in conflitto con qualcosa di cui hai bisogno nella sessione remota."),
|
||||
("Pass-through to remote", "Passa direttamente al remoto"),
|
||||
("Reset to defaults", "Ripristina impostazioni predefinite"),
|
||||
("shortcut-reset-confirm-tip", "Questo sostituirà tutti le associazioni attuali con quelle predefinite. Vuoi continuare?"),
|
||||
("Monitor", "Monitor"),
|
||||
("Keyboard", "Tastiera"),
|
||||
("Toggle fullscreen", "Attiva/disattiva schermo pieno"),
|
||||
("Switch to next display", "Passa allo schermo successivo"),
|
||||
("Switch to previous display", "Passa allo schermo precedente"),
|
||||
("Switch to next tab", "Passa alla scheda successiva"),
|
||||
("Switch to previous tab", "Passa alla scheda precedente"),
|
||||
("Toggle session recording", "Attiva/disattiva registrazione sessione"),
|
||||
("Close tab", "Chiudi scheda"),
|
||||
("Toggle toolbar", "Attiva/disattiva barra strumenti"),
|
||||
("Toggle input source", "Attiva/disattiva sorgente input"),
|
||||
("Edit", "Modifica"),
|
||||
("Save", "Salva"),
|
||||
("Set shortcut", "Imposta scorciatoia"),
|
||||
("shortcut-recording-instruction", "Premi la combinazione di tasti che vuoi usare."),
|
||||
("shortcut-recording-press-keys-tip", "Premi una combinazione di tasti..."),
|
||||
("shortcut-must-include-modifiers", "Deve includere almeno un modificatore: {}"),
|
||||
("shortcut-already-bound-to", "Già assegnato a"),
|
||||
("Replace", "Sostituisci"),
|
||||
("Valid", "Valido"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "La registrazione richiede una tastiera fisica. Le tastiere software non sono supportate."),
|
||||
("shortcut-key-not-supported", "'{}' non può essere usato come scorciatoia."),
|
||||
("On", "ON"),
|
||||
("Off", "OFF"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+27
-27
@@ -781,37 +781,37 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("Relay fallback delay in seconds", "Vertraging voordat relay wordt gebruikt in seconden"),
|
||||
("relay-fallback-delay-tip", "Hoe lang een al tot stand gekomen relayverbinding wacht op de directe WebRTC-verbinding voordat deze in plaats daarvan wordt gebruikt. Verhoog de waarde om een trage directe verbinding meer tijd te geven; verlaag deze om op netwerken waar een directe verbinding niet mogelijk is sneller op de relay terug te vallen. Laat leeg voor de standaardwaarde van 2.5 seconden."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Om een spraakgesprek te starten, schakel je \"Audio-opname\" in op de pagina \"Scherm delen\"."),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("Keyboard shortcuts", "Sneltoetsen"),
|
||||
("Configure shortcuts...", "Sneltoetsen configureren..."),
|
||||
("Enable keyboard shortcuts in remote session", "Sneltoetsen inschakelen in een sessie op afstand"),
|
||||
("shortcut-page-description", "Beschrijving van sneltoetsenpagina"),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("Pass-through to remote", "Doorsturen naar extern apparaat"),
|
||||
("Reset to defaults", "Terugzetten naar standaardinstellingen"),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("Monitor", "Monitor"),
|
||||
("Keyboard", "Toetsenbord"),
|
||||
("Toggle fullscreen", "Volledig scherm wisselen"),
|
||||
("Switch to next display", "Wisselen naar volgend scherm"),
|
||||
("Switch to previous display", "Wisselen naar vorig scherm"),
|
||||
("Switch to next tab", "Schakel naar volgende tabblad"),
|
||||
("Switch to previous tab", "Schakel naar vorig tabblad"),
|
||||
("Toggle session recording", "Sessie-opname wisselen"),
|
||||
("Close tab", "Tabblad sluiten"),
|
||||
("Toggle toolbar", "Werkbalk wisselen"),
|
||||
("Toggle input source", "Invoerbron wisselen"),
|
||||
("Edit", "Bewerken"),
|
||||
("Save", "Opslaan"),
|
||||
("Set shortcut", "Sneltoets toewijzen"),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-must-include-modifiers", "Sneltoets moet een combinatietoets bevatten"),
|
||||
("shortcut-already-bound-to", "Sneltoets is al toegewezen aan"),
|
||||
("Replace", "Vervangen"),
|
||||
("Valid", "Geldig"),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("shortcut-key-not-supported", "Sneltoets wordt niet ondersteund"),
|
||||
("On", "Aan"),
|
||||
("Off", "Uit"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+33
-33
@@ -780,38 +780,38 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
||||
("RustDesk could not load a GStreamer component needed for screen capture ({})", "O RustDesk não conseguiu carregar um componente do GStreamer necessário para a captura de tela ({})."),
|
||||
("Relay fallback delay in seconds", "Atraso antes de recorrer ao retransmissor em segundos"),
|
||||
("relay-fallback-delay-tip", "Tempo que a conexão de retransmissão aguarda pela conexão direta WebRTC. Aumente para dar mais tempo a conexões lentas; diminua para usar o retransmissor mais cedo. Deixe vazio para usar o padrão de 2,5 segundos."),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Para iniciar uma chamada de voz, ative \"Captura de áudio\" na página \"Compartilhar Tela\"."),
|
||||
("Keyboard shortcuts", ""),
|
||||
("Configure shortcuts...", ""),
|
||||
("Enable keyboard shortcuts in remote session", ""),
|
||||
("shortcut-page-description", ""),
|
||||
("shortcut-passthrough-tip", ""),
|
||||
("Pass-through to remote", ""),
|
||||
("Reset to defaults", ""),
|
||||
("shortcut-reset-confirm-tip", ""),
|
||||
("Monitor", ""),
|
||||
("Keyboard", ""),
|
||||
("Toggle fullscreen", ""),
|
||||
("Switch to next display", ""),
|
||||
("Switch to previous display", ""),
|
||||
("Switch to next tab", ""),
|
||||
("Switch to previous tab", ""),
|
||||
("Toggle session recording", ""),
|
||||
("Close tab", ""),
|
||||
("Toggle toolbar", ""),
|
||||
("Toggle input source", ""),
|
||||
("Edit", ""),
|
||||
("Save", ""),
|
||||
("Set shortcut", ""),
|
||||
("shortcut-recording-instruction", ""),
|
||||
("shortcut-recording-press-keys-tip", ""),
|
||||
("shortcut-must-include-modifiers", ""),
|
||||
("shortcut-already-bound-to", ""),
|
||||
("Replace", ""),
|
||||
("Valid", ""),
|
||||
("shortcut-mobile-physical-keyboard-tip", ""),
|
||||
("shortcut-key-not-supported", ""),
|
||||
("On", ""),
|
||||
("Off", ""),
|
||||
("To start a voice call, enable \"Audio capture\" on the \"Share screen\" page.", "Para iniciar uma chamada de voz, ative \"Captura de áudio\" na página \"Compartilhar tela\"."),
|
||||
("Keyboard shortcuts", "Atalhos de teclado"),
|
||||
("Configure shortcuts...", "Configurar atalhos..."),
|
||||
("Enable keyboard shortcuts in remote session", "Ativar atalhos de teclado na sessão remota"),
|
||||
("shortcut-page-description", "Associe uma combinação de teclas a cada ação da sessão abaixo. Cada atalho deve incluir pelo menos uma tecla modificadora."),
|
||||
("shortcut-passthrough-tip", "Quando ativado, os atalhos são enviados ao computador remoto, mesmo quando entram em conflito com combinações de teclas necessárias nele."),
|
||||
("Pass-through to remote", "Encaminhar atalhos ao computador remoto"),
|
||||
("Reset to defaults", "Restaurar padrões"),
|
||||
("shortcut-reset-confirm-tip", "Todos os atalhos atuais serão substituídos pelos padrões. Deseja continuar?"),
|
||||
("Monitor", "Monitor"),
|
||||
("Keyboard", "Teclado"),
|
||||
("Toggle fullscreen", "Alternar tela cheia"),
|
||||
("Switch to next display", "Alternar para a próxima tela"),
|
||||
("Switch to previous display", "Alternar para a tela anterior"),
|
||||
("Switch to next tab", "Alternar para a próxima aba"),
|
||||
("Switch to previous tab", "Alternar para a aba anterior"),
|
||||
("Toggle session recording", "Iniciar/parar gravação da sessão"),
|
||||
("Close tab", "Fechar aba"),
|
||||
("Toggle toolbar", "Mostrar/ocultar barra de ferramentas"),
|
||||
("Toggle input source", "Alternar fonte de entrada"),
|
||||
("Edit", "Editar"),
|
||||
("Save", "Salvar"),
|
||||
("Set shortcut", "Definir atalho"),
|
||||
("shortcut-recording-instruction", "Pressione a combinação de teclas que deseja usar."),
|
||||
("shortcut-recording-press-keys-tip", "Pressione uma combinação de teclas..."),
|
||||
("shortcut-must-include-modifiers", "Deve incluir pelo menos uma tecla modificadora: {}"),
|
||||
("shortcut-already-bound-to", "Já atribuído a"),
|
||||
("Replace", "Substituir"),
|
||||
("Valid", "Válido"),
|
||||
("shortcut-mobile-physical-keyboard-tip", "A gravação de atalhos requer um teclado físico. Teclados virtuais não são compatíveis."),
|
||||
("shortcut-key-not-supported", "Não é possível usar \"{}\" como atalho."),
|
||||
("On", "Ativado"),
|
||||
("Off", "Desativado"),
|
||||
].iter().cloned().collect();
|
||||
}
|
||||
|
||||
+7
-2
@@ -21,7 +21,9 @@ use hbb_common::{
|
||||
rendezvous_proto::*,
|
||||
socket_client,
|
||||
sodiumoxide::crypto::{box_, sign},
|
||||
timeout, tokio, ResultType, Stream,
|
||||
timeout, tokio,
|
||||
websocket::{check_ws, is_ws_endpoint},
|
||||
ResultType, Stream,
|
||||
};
|
||||
use base::message_proto::*;
|
||||
use scrap::camera;
|
||||
@@ -402,8 +404,11 @@ async fn create_relay_connection_(
|
||||
ipv4: bool,
|
||||
meta: ConnectionMeta,
|
||||
) -> ResultType<()> {
|
||||
// The proxy's address family does not constrain the relay target.
|
||||
let relay_server = crate::check_port(relay_server, RELAY_PORT);
|
||||
let use_ws_proxy = Config::is_proxy() && is_ws_endpoint(&check_ws(&relay_server));
|
||||
let mut stream = socket_client::connect_tcp(
|
||||
socket_client::ipv4_to_ipv6(crate::check_port(relay_server, RELAY_PORT), ipv4),
|
||||
socket_client::ipv4_to_ipv6(relay_server, ipv4 || use_ws_proxy),
|
||||
CONNECT_TIMEOUT,
|
||||
)
|
||||
.await?;
|
||||
|
||||
Reference in New Issue
Block a user