diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2019-08-09 15:14:56 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2019-08-09 15:38:39 +0200 |
| commit | 46306e67d47777ae0288a7001239941286fd1c2c (patch) | |
| tree | d44bcf43c2c7677f8bdfa7d5064fe7d00fb5bc1b | |
| parent | 3e251174cd9935d6fb64522bc3f5c64ef8e454de (diff) | |
| download | mullvadvpn-46306e67d47777ae0288a7001239941286fd1c2c.tar.xz mullvadvpn-46306e67d47777ae0288a7001239941286fd1c2c.zip | |
Add message about third party software on Windows
| -rw-r--r-- | gui/src/renderer/components/NotificationArea.tsx | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/gui/src/renderer/components/NotificationArea.tsx b/gui/src/renderer/components/NotificationArea.tsx index 842f750229..fcd0872c2e 100644 --- a/gui/src/renderer/components/NotificationArea.tsx +++ b/gui/src/renderer/components/NotificationArea.tsx @@ -50,14 +50,22 @@ function getBlockReasonMessage(blockReason: BlockReason): string { 'Could not configure IPv6, please enable it on your system or disable it in the app', ); case 'set_firewall_policy_error': + let extraMessage = null; + switch (process.platform) { + case 'linux': + extraMessage = messages.pgettext('in-app-notifications', 'Your kernel may be outdated'); + break; + case 'win32': + extraMessage = messages.pgettext( + 'in-app-notifications', + 'This might be caused by third party security software', + ); + break; + } return `${messages.pgettext( 'in-app-notifications', 'Failed to apply firewall rules. The device might currently be unsecured', - )}${ - process.platform === 'linux' - ? '. ' + messages.pgettext('in-app-notifications', 'Your kernel may be outdated') - : '' - }`; + )}${extraMessage ? '. ' + extraMessage : ''}`; case 'set_dns_error': return messages.pgettext('in-app-notifications', 'Failed to set system DNS server'); case 'start_tunnel_error': |
