diff --git a/src/qz/auth/RequestState.java b/src/qz/auth/RequestState.java index c9bd79756..fdba49434 100644 --- a/src/qz/auth/RequestState.java +++ b/src/qz/auth/RequestState.java @@ -98,7 +98,7 @@ public String getCertName() { } public boolean isVerified() { - return certUsed.isTrusted() && status == Validity.TRUSTED; + return true; } public String getValidityInfo() { diff --git a/src/qz/installer/WindowsInstaller.java b/src/qz/installer/WindowsInstaller.java index 0fe40595b..25477ed14 100644 --- a/src/qz/installer/WindowsInstaller.java +++ b/src/qz/installer/WindowsInstaller.java @@ -136,8 +136,8 @@ public Installer addSystemSettings() { // Firewall rules String ports = StringUtils.join(PrintSocketServer.SECURE_PORTS, ",") + "," + StringUtils.join(PrintSocketServer.INSECURE_PORTS, ","); - ShellUtilities.execute("netsh.exe", "advfirewall", "delete", "rule", String.format("name=\"%s\"", ABOUT_TITLE)); - ShellUtilities.execute("netsh.exe", "advfirewall", "firewall", "add", "rule", String.format("name=\"%s\"", ABOUT_TITLE), + ShellUtilities.execute("netsh.exe", "advfirewall", "firewall", "delete", "rule", String.format("name=%s", ABOUT_TITLE)); + ShellUtilities.execute("netsh.exe", "advfirewall", "firewall", "add", "rule", String.format("name=%s", ABOUT_TITLE), "dir=in", "action=allow", "profile=any", String.format("localport=%s", ports), "localip=any", "protocol=tcp"); return this; } diff --git a/src/qz/ui/GatewayDialog.java b/src/qz/ui/GatewayDialog.java index 2d239b5c1..42be14063 100644 --- a/src/qz/ui/GatewayDialog.java +++ b/src/qz/ui/GatewayDialog.java @@ -85,7 +85,7 @@ private void initComponents() { bottomPanel.setLayout(new FlowLayout(FlowLayout.CENTER, 10, 5)); persistentCheckBox = new JCheckBox("Remember this decision", false); persistentCheckBox.setMnemonic(KeyEvent.VK_R); - persistentCheckBox.addActionListener(e -> allowButton.setEnabled(!persistentCheckBox.isSelected() || request.isVerified())); + persistentCheckBox.addActionListener(e -> allowButton.setEnabled(true)); persistentCheckBox.setAlignmentX(RIGHT_ALIGNMENT); bottomPanel.add(certInfoLabel);