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

net.mbedtls: add stores client ip and shutdown on handshake failure #22184

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

martinskou
Copy link
Contributor

Stores clients ip in the SSLConn struct.
Calls conn.shutdown() in event of handshake failure to avoid hanging CLOSE_WAIT sockets.

Stores clients ip in the SSLConn struct.
Calls conn.shutdown() in event of handshake failure to avoid hanging CLOSE_WAIT sockets.
Comment on lines +269 to +271
if iplen == 4 {
conn.ip = '${ip[0]}.${ip[1]}.${ip[2]}.${ip[3]}'
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens for ipv6 addresses?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure, should prob. be joined like y:y:y:y:y:y:y:y i'll fix when i get to it.

@spytheman spytheman merged commit f002fd4 into vlang:master Sep 9, 2024
62 of 63 checks passed
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