Description
Sync Gateway needs the ability to connect to Couchbase Server clusters that have been configured with alternate address support. This works as expected for Sync Gateway's other bucket interactions (via gocb), but fails for DCP connections.
Specifically, this is handling the case where there is a DNAT in front of Couchbase Server and it has to advertise these alternate endpoints to the client.