Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix connection manager check when disconnect_invalid set #658

Merged
merged 1 commit into from
Apr 4, 2022

Conversation

wadey
Copy link
Member

@wadey wadey commented Mar 18, 2022

This restores the hostMap.QueryVpnIP block to how it looked before #370
was merged. I'm not sure why the patch from #370 wanted to continue on
if there was no match found in the hostmap, since there isn't anything
to do at that point (the tunnel has already been closed).

This was causing a crash because the handleInvalidCertificate check
expects the hostinfo to be passed in (but it is nil since there was no
hostinfo in the hostmap).

Fixes: #657

This restores the hostMap.QueryVpnIP block to how it looked before #370
was merged. I'm not sure why the patch from #370 wanted to continue on
if there was no match found in the hostmap, since there isn't anything
to do at that point (the tunnel has already been closed).

This was causing a crash because the handleInvalidCertificate check
expects the hostinfo to be passed in (but it is nil since there was no
hostinfo in the hostmap).

Fixes: #657
@wadey wadey added this to the v1.6.0 milestone Mar 18, 2022
@wadey wadey added the bug Something isn't working label Mar 18, 2022
@wadey wadey added the needs-changelog We merged, but still need to write a CHANGELOG entry label Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-changelog We merged, but still need to write a CHANGELOG entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

panic: runtime error
3 participants