mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 15:10:23 +00:00
Tty state fixes
This commit is contained in:
parent
e7f18dc341
commit
d750089b52
16 changed files with 28 additions and 1 deletions
|
@ -28,7 +28,8 @@ public class BeaconRequestHandler<T> implements HttpHandler {
|
|||
|
||||
@Override
|
||||
public void handle(HttpExchange exchange) {
|
||||
if (OperationMode.isInShutdown()) {
|
||||
if (OperationMode.isInShutdown() && !beaconInterface.acceptInShutdown()) {
|
||||
writeError(exchange, new BeaconClientErrorResponse("Daemon is currently in shutdown"), 400);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -62,6 +62,10 @@ public abstract class BeaconInterface<T> {
|
|||
return (Class<T>) Class.forName(name);
|
||||
}
|
||||
|
||||
public boolean acceptInShutdown() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean requiresCompletedStartup() {
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -12,6 +12,11 @@ import java.util.UUID;
|
|||
|
||||
public class AskpassExchange extends BeaconInterface<AskpassExchange.Request> {
|
||||
|
||||
@Override
|
||||
public boolean acceptInShutdown() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPath() {
|
||||
return "/askpass";
|
||||
|
|
|
@ -11,6 +11,11 @@ import lombok.extern.jackson.Jacksonized;
|
|||
|
||||
public class HandshakeExchange extends BeaconInterface<HandshakeExchange.Request> {
|
||||
|
||||
@Override
|
||||
public boolean acceptInShutdown() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPath() {
|
||||
return "/handshake";
|
||||
|
|
|
@ -375,3 +375,4 @@ serialHostDescription=Systemet til at få adgang til den serielle port på
|
|||
serialPortConfiguration=Konfiguration af seriel port
|
||||
serialPortConfigurationDescription=Konfigurationsparametre for den tilsluttede serielle enhed
|
||||
serialInformation=Seriel information
|
||||
openXShell=Åbn i XShell
|
||||
|
|
|
@ -353,3 +353,4 @@ serialHostDescription=Das System für den Zugriff auf die serielle Schnittstelle
|
|||
serialPortConfiguration=Konfiguration der seriellen Schnittstelle
|
||||
serialPortConfigurationDescription=Konfigurationsparameter des angeschlossenen seriellen Geräts
|
||||
serialInformation=Serielle Informationen
|
||||
openXShell=In XShell öffnen
|
||||
|
|
|
@ -351,3 +351,4 @@ serialHostDescription=The system to access the serial port on
|
|||
serialPortConfiguration=Serial port configuration
|
||||
serialPortConfigurationDescription=Configuration parameters of the connected serial device
|
||||
serialInformation=Serial information
|
||||
openXShell=Open in XShell
|
||||
|
|
|
@ -349,3 +349,4 @@ serialHostDescription=El sistema para acceder al puerto serie en
|
|||
serialPortConfiguration=Configuración del puerto serie
|
||||
serialPortConfigurationDescription=Parámetros de configuración del dispositivo serie conectado
|
||||
serialInformation=Información en serie
|
||||
openXShell=Abrir en XShell
|
||||
|
|
|
@ -349,3 +349,4 @@ serialHostDescription=Le système pour accéder au port série sur
|
|||
serialPortConfiguration=Configuration du port série
|
||||
serialPortConfigurationDescription=Paramètres de configuration de l'appareil en série connecté
|
||||
serialInformation=Informations en série
|
||||
openXShell=Ouvrir dans XShell
|
||||
|
|
|
@ -349,3 +349,4 @@ serialHostDescription=Il sistema per accedere alla porta seriale su
|
|||
serialPortConfiguration=Configurazione della porta seriale
|
||||
serialPortConfigurationDescription=Parametri di configurazione del dispositivo seriale collegato
|
||||
serialInformation=Informazioni di serie
|
||||
openXShell=Apri in XShell
|
||||
|
|
|
@ -349,3 +349,4 @@ serialHostDescription=のシリアルポートにアクセスするシステム
|
|||
serialPortConfiguration=シリアルポートの設定
|
||||
serialPortConfigurationDescription=接続されたシリアル・デバイスの設定パラメーター
|
||||
serialInformation=シリアル情報
|
||||
openXShell=XShellで開く
|
||||
|
|
|
@ -349,3 +349,4 @@ serialHostDescription=Het systeem om toegang te krijgen tot de seriële poort op
|
|||
serialPortConfiguration=Seriële poort configuratie
|
||||
serialPortConfigurationDescription=Configuratieparameters van het aangesloten seriële apparaat
|
||||
serialInformation=Seriële informatie
|
||||
openXShell=Openen in XShell
|
||||
|
|
|
@ -349,3 +349,4 @@ serialHostDescription=O sistema para aceder à porta série em
|
|||
serialPortConfiguration=Configuração da porta de série
|
||||
serialPortConfigurationDescription=Parâmetros de configuração do dispositivo de série ligado
|
||||
serialInformation=Informação de série
|
||||
openXShell=Abre no XShell
|
||||
|
|
|
@ -349,3 +349,4 @@ serialHostDescription=Система для доступа к последова
|
|||
serialPortConfiguration=Конфигурация последовательного порта
|
||||
serialPortConfigurationDescription=Параметры конфигурации подключенного последовательного устройства
|
||||
serialInformation=Серийная информация
|
||||
openXShell=Открыть в XShell
|
||||
|
|
|
@ -349,3 +349,4 @@ serialHostDescription=Seri porta erişmek için sistem
|
|||
serialPortConfiguration=Seri bağlantı noktası yapılandırması
|
||||
serialPortConfigurationDescription=Bağlı seri cihazın konfigürasyon parametreleri
|
||||
serialInformation=Seri bilgileri
|
||||
openXShell=XShell'de Aç
|
||||
|
|
|
@ -349,3 +349,4 @@ serialHostDescription=访问串行端口的系统
|
|||
serialPortConfiguration=串行端口配置
|
||||
serialPortConfigurationDescription=所连接串行设备的配置参数
|
||||
serialInformation=序列信息
|
||||
openXShell=在 XShell 中打开
|
||||
|
|
Loading…
Reference in a new issue