Skip to content

Commit

Permalink
fix(server): fix dedicated database connect host (#1906)
Browse files Browse the repository at this point in the history
  • Loading branch information
0fatal authored Mar 14, 2024
1 parent ab28cd4 commit 658fe49
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ export class DedicatedDatabaseService {

const username = Buffer.from(srv.body.data.username, 'base64').toString()
const password = Buffer.from(srv.body.data.password, 'base64').toString()
const host = Buffer.from(srv.body.data.headlessHost, 'base64').toString()
let host = Buffer.from(srv.body.data.headlessHost, 'base64').toString()
if (host && !host.includes(namespace)) {
host += `.${namespace}`
}
const port = Number(
Buffer.from(srv.body.data.headlessPort, 'base64').toString(),
)
Expand Down

0 comments on commit 658fe49

Please sign in to comment.