Skip to content

Commit df95208

Browse files
authored
Merge pull request #380 from DefGuard/main
Sync dev with newest main changes (post 1.2)
2 parents 4705e0d + 585f0f2 commit df95208

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "defguard-client",
33
"private": false,
4-
"version": "1.1.2",
4+
"version": "1.2.0",
55
"type": "module",
66
"scripts": {
77
"dev": "npm-run-all --parallel vite typesafe-i18n",

src-tauri/Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ edition = "2021"
1111
homepage = "https://github.com/DefGuard/client"
1212
license-file = "../LICENSE.md"
1313
rust-version = "1.80"
14-
version = "1.1.2"
14+
version = "1.2.0"
1515

1616
[package]
1717
name = "defguard-client"

src-tauri/cli/src/bin/dg.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
use core::fmt;
2+
#[cfg(not(windows))]
3+
use std::os::unix::fs::PermissionsExt;
24
use std::{
35
fs::{create_dir, OpenOptions},
46
net::IpAddr,
5-
os::unix::fs::PermissionsExt,
67
path::{Path, PathBuf},
78
str::FromStr,
89
sync::Arc,
@@ -154,9 +155,9 @@ async fn connect(config: CliConfig, trigger: Arc<Notify>) -> Result<(), CliError
154155

155156
// let wgapi = setup_wgapi(&ifname).expect("Failed to setup WireGuard API");
156157
#[cfg(not(target_os = "macos"))]
157-
let wgapi = WGApi::<Kernel>::new(ifname.to_string())?;
158+
let wgapi = WGApi::<Kernel>::new(ifname.to_string()).expect("Failed to setup WireGuard API");
158159
#[cfg(target_os = "macos")]
159-
let wgapi = WGApi::<Userspace>::new(ifname.to_string())?;
160+
let wgapi = WGApi::<Userspace>::new(ifname.to_string()).expect("Failed to setup WireGuard API");
160161

161162
#[cfg(not(windows))]
162163
{

src-tauri/tauri.conf.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"package": {
1010
"productName": "defguard-client",
11-
"version": "1.1.2"
11+
"version": "1.2.0"
1212
},
1313
"tauri": {
1414
"systemTray": {

src/pages/client/pages/ClientInstancePage/components/LocationsList/modals/MFAModal/MFAModal.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ const MFACodeForm = ({ description, token, proxyUrl, resetState }: MFACodeForm)
241241
const finishMFA = async (code: string) => {
242242
if (!location) return toaster.error(localLL.errors.mfaStartGeneric());
243243

244-
const data = { token, code: Number(code) };
244+
const data = { token, code: code };
245245

246246
const response = await fetch<MFAFinishResponse>(proxyUrl + '/finish', {
247247
method: 'POST',

0 commit comments

Comments
 (0)