Skip to content

Commit

Permalink
Merge branch 'release/v1.1' into hotfix/gateway-filters
Browse files Browse the repository at this point in the history
  • Loading branch information
reaver-flomesh committed Sep 15, 2023
2 parents 1b9391c + 15a6711 commit 8d4b810
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion charts/fsm/components/scripts/ingress/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

pipy({
_passthroughTarget: undefined,
_sni: undefined,
})
.export('main', {
__route: undefined,
Expand Down Expand Up @@ -65,9 +66,15 @@
))()
)
)
.handleTLSClientHello(
hello => (
_sni = hello?.serverNames?.[0]
)
)
.acceptTLS({
certificate: (sni, cert) => (
console.log('SNI', sni),
!sni && (sni = _sni),
console.log('SNI', sni),
sni && ((
Object.entries(certificates).find(
([k, v]) => (
Expand Down

0 comments on commit 8d4b810

Please sign in to comment.