Commit Graph

870 Commits (4da342c351f721ab0dd29037a533047f7a155cd3)

Author SHA1 Message Date
bovirus e4089c2141
Update italian language (#580)
* Update italian language
2023-01-18 23:12:35 -05:00
Frank Lichtenheld e0d57b8d80 Bump version to 11.35.0.0
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
2023-01-12 14:27:37 +01:00
Frank Lichtenheld c354c19e8f .gitignore: update
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
2023-01-12 14:02:26 +01:00
Selva Nair 53ae2844b6 Update CHANGES.rst
Signed-off-by: Selva Nair <selva.nair@gmail.com>
2023-01-12 10:09:09 +01:00
Selva Nair 28a568201c Handle CONNECTED,ROUTE_ERROR state message
When connected, the daemon now reports the state as
CONNECTED,ROUTE_ERROR on routing errors that would have been
reported as CONNECTED,SUCCESS in the past.

To not overly disrupt the current behaviour we treat CONNECTED,ROUTE_ERROR
almost the same was as CONNECTED,SUCCESS except that an error is logged and
the status window is popped up if not already open for all cases other
that CONNECTED,SUCCESS.

Further, the icons on the status window, is left at yellow
and the status text is set to "Connected with routing errors"
in case of ROUTE_ERROR.

Tray and menu icons will change to green. Leaving them yellow is not
persistent as we do not yet have a state variable in the GUI that distinguishes
between "successfully connected" and "connected with route errors".

TODO: re-work this CONNECTED state handling based on how critical
ROUTE_ERROR is in real use.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2023-01-12 10:09:09 +01:00
Selva Nair b4e3e076b8 Support colouring of WriteStatusLog messages
If the prefix string includes ERROR or WARNING these messages
are now shown in colour (red or yellow) similar to how log lines
are displayed.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2023-01-12 10:09:09 +01:00
bovirus d47b5f116d Update italian language 2023-01-07 13:47:03 -08:00
bovirus b25a24f833 Update italian language 2023-01-07 13:47:03 -08:00
bovirus f7d594d314 Update italian language 2023-01-07 13:47:03 -08:00
Selva Nair 99a0c5de29 Fix truncated text in Italian
Text re-positioned in General Settings Window

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2022-12-30 16:43:25 -08:00
bovirus fa82d6963b Update Italian language
Complete Italian translation
Use the feedback posted in PR 510
Fixed 2021 -> 2022 issue
2022-12-30 16:43:25 -08:00
justwho cea3d255ff Update openvpn-gui-res-zh-hans.rc 2022-12-28 08:52:08 -08:00
Frank Lichtenheld 6398b1df56 Bump version to 11.34.0.0
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
2022-12-28 13:17:02 +01:00
Selva Nair 6daee5814f Update CHANGES.rst
Date removed for ease of updating this file.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2022-12-28 13:09:27 +01:00
Selva Nair 548aeb0d18 Improve README
- Revise manual installation instructions
- Add a comment on management password
- Mention auto-reconnect feature

Fixes #354

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2022-12-27 09:02:35 -08:00
Lev Stipakov 442a48e9e8 BUILD.rst: switch to VS2022
Signed-off-by: Lev Stipakov <lev@openvpn.net>
2022-12-23 12:02:19 -08:00
Lev Stipakov e9e9dae830 Update vcpkg commit id
This will bump OpenSSL version to 3.0.7, the same
we use for master and release/2.6.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2022-12-23 12:02:19 -08:00
Selva Nair 8b1976c6e3 Increase max size of management password buffer
As we now allow users to set a management password (for persistent
connections), the max size of password should match what openvpn.exe
can handle (128 or 4096 bytes depending on build options).

Increase the buffer size to 4096 though such large passwords
may not work in practice. 127 bytes + NUL, may be a safe upper limit.

For the random password used for connections spawned by the GUI,
the current size of 15 bytes + NUL is retained.

Fixes: #567
Signed-off-by: Selva Nair <selva.nair@gmail.com>
2022-12-22 12:11:55 -08:00
Lev Stipakov 78bdc6ff4f msvc: update to Visual Studio 2022
Signed-off-by: Lev Stipakov <lev@openvpn.net>
2022-12-22 08:52:59 -08:00
Selva Nair 061e653a19 Add an option to toggle auto-restart feature
The option is enabled by default.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2022-12-20 08:46:50 -08:00
Selva Nair fa9e79323b Save active connections on exit and auto-start in next session
New feature: any connection that is not disconnected on exit
will auto-connect when the GUi is started the next time.

There is no option to toggle auto-connect of any profile. Instead,
just connect normally and leave the connection open while closing the
GUI directly or indirectly (on logout, for example). Such a connection
will auto-connect when the GUI is started the next time.

If auto-connect is not desired for a particular connection, stop it
before exit. Or, the whole feature may be disabled in the setings menu
(implemented in next commit).

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2022-12-20 08:46:50 -08:00
Selva Nair 07dbb301ef Reposition truncated text in Settings dialogs
Provide more room for some long strings in General and
Advanced settings dialogs in German localization.

fixes #244

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2022-12-19 08:52:45 -08:00
Selva Nair 18a09688bf Add support for WEB_AUTH requests from server
WEB_AUTH is treated same way as OPEN_URL with no support
for optional flags in WEB_AUTH message. In particular
proxy is not supported.

Closes #414

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2022-12-19 07:12:44 -08:00
Frank Lichtenheld e96d8e4289 Bump version to 11.33.0.0
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
2022-12-15 15:34:56 +01:00
Selva Nair 4066c87787 Update CHANGES.rst for 11.33.0
Signed-off-by: Selva Nair <selva.nair@gmail.com>
2022-12-15 06:30:19 -08:00
justwho ab39e1b32e Update openvpn-gui-res-zh-hans.rc 2022-12-13 07:41:46 -08:00
Selva Nair 9d83f491d9 Always show persistent connections under a separate sub-menu
Since version 11.30, we scan config-auto folder and show them
in the menu of available connection profiles. To reduce user-confusion,
always group these configs under a submenu ("Persistent Connections")
even when nested config menu view is not in use.

ActivateConfigGroups() is now always called as Persistent and
System profile groups can now go from empty to non-empty
on rescan.

When nested config menu view is enabled, "persistent", "system"
and "user" configs are always shown in separate groups.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2022-12-12 14:45:57 -08:00
Selva Nair d24876c863 Re-order persistent and system config groups in menu
Create the parent groups for persistent and system profiles
in advance so that these always appear at the top when nested
config menu view is active.

Also, while rescanning with active connections present, newly
found configs in global config and auto-config folders are added
to their own parent groups instead of to the root groups.

No user-visible changes unless nested config menu view is enabled.
In that case, "Persistent Connections" followed by "System Profiles"
will always appear first in the connections list.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2022-12-12 14:45:57 -08:00
Selva Nair b6bbe9dfcd Delete unrecognized escape sequence in openvpn-gui-res-fa.rc
x86_64-w64-mingw32-windres -DHAVE_CONFIG_H -I.   -D_UNICODE  -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=_WIN32_WINNT_WIN7 -DWINVER=_WIN32_WINNT -i res/openvpn-gui-res.rc -o openvpn-gui-res.o
res/openvpn-gui-res-fa.rc:547: unrecognized escape sequence

- Stale '\ ' from previous commit

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2022-12-12 07:07:35 -08:00
Selva Nair 13dd35ef61 Bugfix for management-timeout patch
PR 418 introduced repeatedly trying to connect to the
management interface on timeout. User can exit out of this loop
by "disconnect", but for this to work an explict
call to OnStop() is required. Normally OnStop() is triggered
by management disconnect which won't happen if not connected
in the first place.

Also call OnStop() on all iservice errors instead of waiting for
management timeout which may never happen.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2022-12-12 07:07:35 -08:00
Selva Nair 5ea0b4319f Open PLAP debug file in unicode mode
_wfopen requires ccs=<encoding> to support writing of
non-ascii text. This was missed in the initial commit.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2022-12-08 18:17:19 -08:00
Selva Nair 5c06c3a0cc Copy new resource ids to all languages
Signed-off-by: Selva Nair <selva.nair@gmail.com>
2022-12-08 18:17:19 -08:00
Selva Nair fa0f55e5a3 Localization of strings in PLAP dialog
Signed-off-by: Selva Nair <selva.nair@gmail.com>
2022-12-08 18:17:19 -08:00
Selva Nair 3427aeb88f Enable localization of openvpn daemon state names
These strings are displayed in the PLAP progress window.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2022-12-08 18:17:19 -08:00
Selva Nair e5ef5038ce Update links in README.rst
- Download link was outdated.
- Link to docs on configuration pointed to the main page of OpenVPN Inc.
  which is hardly helpful -- point to the configuration section of the
  HOW TO instead.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2022-12-08 05:48:57 -08:00
Selva Nair 01133d0450 Update CHANGES.rst
Signed-off-by: Selva Nair <selva.nair@gmail.com>
2022-12-07 22:25:10 +01:00
Selva Nair be41ff1a0e
Fix truncated text in some dialogs (#551)
undefined
2022-12-05 21:49:55 -05:00
Selva Nair 1663417b63 RTL alignment in PLAP task dialog
Signed-off-by: Selva Nair <selva.nair@gmail.com>
2022-12-03 18:03:40 -05:00
Selva Nair 8721cb60c8 Support RTL alignment in echo message window
Message title is left-aligned and text right-aligned and
scrollbar is on the left if language is RTL.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2022-12-03 18:03:40 -05:00
Selva Nair 4d99c9b9f9 Respect UI language flow direction in message boxes
- Add a function to check flow direction of currently selected
UI language
- Add MB_RIGHT|MB_RTLREADING to message boxes when language is RTL

Note: though we use MessageBoxEx() for popups, and pass langId to it,
buttons like OK/Cancel are not automatically localized. It seems these
get localized based on the current locale, not the langID passed in.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2022-12-03 18:03:40 -05:00
Selva Nair 27e73d0636 Change target Windows version to Windows 7 from Vista
Some features used in the next commit requires this.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2022-12-03 18:03:40 -05:00
dany pm 4bf6de6f08 Updated Farsi translation
Signed-off-by: Danial P <daniel.pm307@hotmail.com>
2022-12-03 17:55:52 -05:00
Frank Lichtenheld 280b456b61 Bump version to 11.32.0.0
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
2022-12-02 14:04:57 -05:00
Selva Nair 546471f1ef Farsi: Add explicit LRE markers in some places
In bidirectional text, neutral characters like parentheses
and slashes can get interpreted as RTL when not surrounded by
strong LTR characters. This leads to wrong formatting like
"<Copyright <foo@example.com" instead of "Copyright <foo@example.com>"

Workaround by adding explicit right-to-left embedding marker (U+202a).
(Ref: https://www.unicode.org/reports/tr9/)

For trailing slash in URLs, they are just omitted when not really
required.

Some other minor edits:
- Do not translate "OpenVPN Technologies Inc."
- SOCKES --> SOCKS

Signed-off-by: Selva Nair <selva.nair@gmail.com>
2022-11-28 13:25:28 -05:00
Selva Nair 5204df0e80 Use RTL layout for Farsi
Signed-off-by: Selva Nair <selva.nair@gmail.com>
2022-11-28 13:25:28 -05:00
justwho 6002404e2b Update openvpn-gui-res-zh-hans.rc 2022-11-11 15:47:37 -05:00
Frank Lichtenheld 82a6701eb5
Merge pull request #540 from flichtenheld/master
Bump version to 11.31.0.0
2022-11-10 18:36:22 +01:00
justwho ed66957dc7 Update openvpn-gui-res-zh-hans.rc 2022-11-08 11:18:40 -05:00
Frank Lichtenheld 7b0479efb5 Bump version to 11.31.0.0
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
2022-11-07 10:29:15 +01:00
Selva Nair 18ba3b2480 PLAP: Document usage in README
Signed-off-by: Selva Nair <selva.nair@gmail.com>
2022-11-05 18:18:06 -04:00