globalsign / mgo

The MongoDB driver for Go
Other
1.97k stars 232 forks source link

Porting mongo+srv support from new, offical mongo driver #394

Open bonczj opened 4 years ago

bonczj commented 4 years ago

This PR is to address issue #112 . The code changes are largely based on the new, official mongo driver. That code does not drop in cleanly, so the code was modified so that it works with mgo.

While a test does exist, it requires specific DNS configurations that have to be set up externally. This test can be modified to enable testing a connection to a cluster using the new mongo+srv URI format.