Skip to content

Commit

Permalink
fix(listener): delete cacertfile when it is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinplemelon authored and ysfscream committed Sep 30, 2024
1 parent ac79898 commit 8f5cc18
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/hooks/Config/useListenerUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,7 @@ export default (gatewayName?: string | undefined): ListenerUtils => {
}
break
case 'ssl_options':
// QUIC does not pass the cacertfile field when it's empty
if (record.type === ListenerType.QUIC && record[v].cacertfile === '') {
if (record[v].cacertfile === '') {
delete record[v].cacertfile
}
break
Expand Down

0 comments on commit 8f5cc18

Please sign in to comment.