Skip to content

fix(openvpn-status): manage real_address format after OpenVPN version update#1687

Merged
Tbaile merged 2 commits into
nethsecurity-8.8from
issue1686
May 21, 2026
Merged

fix(openvpn-status): manage real_address format after OpenVPN version update#1687
Tbaile merged 2 commits into
nethsecurity-8.8from
issue1686

Conversation

@m-dilorenzi
Copy link
Copy Markdown
Collaborator

@m-dilorenzi m-dilorenzi commented May 20, 2026

This pull request contains updates to manage users' connection status for the OpenVPN RoadWarrior server.

After updating the OpenVPN package from 2.6.14 to 2.7.4, the real_address field is now formatted as [proto]:[ip]:[port], which caused an inconsistent state in the OpenVPN RoadWarrior section: a user can appear disconnected even though they are actually connected (a new connection history record is correctly visible in the Connections History table).

The parsing logic that extracts the client's ip and `port' has been updated to handle real_address values with two or three parts. If there are two parts, the behavior remains unchanged; if there are three parts, the first part (the proto information) is ignored.

If real_address contains only one part or more than three parts, the entire real_address is used as the value to avoid problems (the IP address is shown only in the "More info" tooltip).

Closes: #1686

@m-dilorenzi m-dilorenzi requested a review from Tbaile May 20, 2026 11:58
@m-dilorenzi m-dilorenzi self-assigned this May 20, 2026
@m-dilorenzi m-dilorenzi changed the title Issue1686 fix(openvpn-status): manage real_address format after OpenVPN version update May 20, 2026
@Tbaile Tbaile merged commit 61c6285 into nethsecurity-8.8 May 21, 2026
2 checks passed
@Tbaile Tbaile deleted the issue1686 branch May 21, 2026 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants