Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nix/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
makeDesktopItem,
}: let
pname = "defguard-client";
version = "1.5.1"; # TODO: Get this from Cargo.toml or git
version = "1.5.2"; # TODO: Get this from Cargo.toml or git

desktopItem = makeDesktopItem {
name = pname;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "defguard-client",
"private": false,
"version": "1.5.1",
"version": "1.5.2",
"type": "module",
"scripts": {
"dev": "npm-run-all --parallel vite typesafe-i18n",
Expand Down Expand Up @@ -132,4 +132,4 @@
"volta": {
"node": "20.5.1"
}
}
}
4 changes: 2 additions & 2 deletions resources-linux/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ GROUP_NAME="defguard"
SERVICE_NAME="defguard-service"

case "$1" in
configure)
1|configure)
# Create the group if it doesn't exist
if ! getent group "$GROUP_NAME" >/dev/null; then
addgroup --system "$GROUP_NAME"
groupadd --system "$GROUP_NAME"
echo "Created group $GROUP_NAME"
fi

Expand Down
6 changes: 3 additions & 3 deletions resources-linux/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ GROUP_NAME="defguard"
SERVICE_NAME="defguard-service"

case "$1" in
remove)
0|1|remove)
# Service file still exists, just disable it
if [ -d /run/systemd/system ]; then
systemctl disable "$SERVICE_NAME" || true
systemctl daemon-reload
fi
;;

purge)
0|purge)
# Complete removal - clean up group too
if getent group "$GROUP_NAME" >/dev/null; then
delgroup "$GROUP_NAME" || true
groupdel "$GROUP_NAME" || true
fi
;;
esac
Expand Down
2 changes: 1 addition & 1 deletion resources-linux/prerm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
SERVICE_NAME="defguard-service"

case "$1" in
remove|upgrade|deconfigure)
0|1|remove|upgrade|deconfigure)
if [ -d /run/systemd/system ]; then
# Stop the service before removal/upgrade
systemctl stop "$SERVICE_NAME" || true
Expand Down
6 changes: 3 additions & 3 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ edition = "2021"
homepage = "https://github.com/DefGuard/client"
license-file = "../LICENSE.md"
rust-version = "1.80"
version = "1.5.1"
version = "1.5.2"

[package]
name = "defguard-client"
Expand Down
4 changes: 2 additions & 2 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"productName": "defguard-client",
"mainBinaryName": "defguard-client",
"identifier": "net.defguard",
"version": "1.5.1",
"version": "1.5.2",
"app": {
"security": {
"capabilities": [
Expand Down Expand Up @@ -107,4 +107,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,6 @@ const MFACodeForm = ({ description, token, proxyUrl, resetState }: MFACodeForm)
if (response.ok) {
closeModal();
const data = (await response.json()) as MFAFinishResponse;
error(`ARSE ${location.connection_type}`);
await connect({
locationId: location?.id,
connectionType: location.connection_type,
Expand Down