diff options
| author | yueyoum <yueyoum@gmail.com> | 2026-03-13 03:04:12 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2026-03-18 13:26:10 -0700 |
| commit | a481ef071e0b30b33b2857919957be151b2d2a6d (patch) | |
| tree | 2f75e56690d9ecaae57a5bf4420ceacd7017183a /src/runtime | |
| parent | a61fd428974822a8c57a2b2840fc237e6711b24d (diff) | |
| download | go-a481ef071e0b30b33b2857919957be151b2d2a6d.tar.xz | |
net/url: allow commas in hostnames for mongodb urls
A valid MongoDB URL can contain commas
to include multiple host:port pairs.
The current parseHost function splits the port
starting from the first colon (:),
but for MongoDB URLs that contain multiple host:port pairs,
it needs to split from the last colon (:).
Fixes #78077
Change-Id: I9a11f9295d0bc940626d3c6e9db2704237019b51
GitHub-Last-Rev: 5ca22763248214b2ea3f22d56c82fc01df9f8dba
GitHub-Pull-Request: golang/go#77933
Reviewed-on: https://go-review.googlesource.com/c/go/+/751360
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Sean Liao <sean@liao.dev>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Sean Liao <sean@liao.dev>
Reviewed-by: Damien Neil <dneil@google.com>
Diffstat (limited to 'src/runtime')
0 files changed, 0 insertions, 0 deletions
