Skip to content

trim [ and ] from host string before used to connect by TcpStream - #1818

Merged
abonander merged 1 commit into
transact-rs:masterfrom
smonv:fix/invalid-ipv6-host
Jun 1, 2022
Merged

abonander merged 1 commit into
transact-rs:masterfrom
smonv:fix/invalid-ipv6-host

Conversation

@smonv

@smonv smonv commented Apr 19, 2022

Copy link
Copy Markdown
Contributor

I follow suggestion of @abonander and trim [ and ] from host string before connect

Close #1739

Comment thread sqlx-core/src/net/socket.rs Resolved
@smonv
smonv force-pushed the fix/invalid-ipv6-host branch from 4c9fa90 to 204a65d Compare April 22, 2022 02:10
@danielhuang

Copy link
Copy Markdown

This would work, but what if the input contains multiple [ or ]?

Seems unlikely though.

@smonv
smonv force-pushed the fix/invalid-ipv6-host branch from 204a65d to df5f827 Compare May 3, 2022 02:10
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.

invalid ipv6 host

3 participants