Skip to content

Commit

Permalink
fix dataplane bad tls config/default
Browse files Browse the repository at this point in the history
  • Loading branch information
devinivy committed Dec 27, 2023
1 parent 438025e commit f431958
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/bsky/src/data-plane/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const createDataPlaneClient = (
baseUrl: string,
opts: { httpVersion?: HttpVersion; rejectUnauthorized?: boolean },
) => {
const { httpVersion = '2', rejectUnauthorized = false } = opts
const { httpVersion = '2', rejectUnauthorized = true } = opts
const transport = createConnectTransport({
baseUrl,
httpVersion,
Expand Down
2 changes: 1 addition & 1 deletion packages/bsky/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class BskyAppView {

const dataplane = createDataPlaneClient(config.dataplaneUrl, {
httpVersion: config.dataplaneHttpVersion,
rejectUnauthorized: config.dataplaneIgnoreBadTls,
rejectUnauthorized: !config.dataplaneIgnoreBadTls,
})
const hydrator = new Hydrator(dataplane)
const views = new Views(imgUriBuilder)
Expand Down

0 comments on commit f431958

Please sign in to comment.