Skip to content

Commit

Permalink
Fix CF secureSocketTransport config
Browse files Browse the repository at this point in the history
  • Loading branch information
petebacondarwin committed May 6, 2023
1 parent ddffc66 commit 1d92c24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pg/lib/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class CFSocket extends EventEmitter {
log('connecting')
if (connectListener) this.once('connect', connectListener)

const options = this.ssl ? { secureTransport: 'allow' } : {}
const options = this.ssl ? { secureTransport: 'starttls' } : {}
const { connect } = await import('cloudflare:sockets')
this._cfSocket = connect(`${host}:${port}`, options)
this._cfWriter = this._cfSocket.writable.getWriter()
Expand Down

0 comments on commit 1d92c24

Please sign in to comment.