Skip to content

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

Open
m-dilorenzi wants to merge 2 commits into
nethsecurity-8.8from
issue1686
Open

fix(openvpn-status): manage real_address format after OpenVPN version update#1687
m-dilorenzi wants to merge 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
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.

1 participant