Browse Source

Merge pull request #4234 from nocodb/fix/ssl-modes

fix: ssl mode mapping
pull/4258/head
աɨռɢӄաօռɢ 2 years ago committed by GitHub
parent
commit
3ec9f42fd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      packages/nc-gui/pages/index/index/create-external.vue
  2. 2
      packages/nc-gui/utils/projectCreateUtils.ts

3
packages/nc-gui/pages/index/index/create-external.vue

@ -113,6 +113,9 @@ const onSSLModeChange = ((mode: SSLUsage) => {
delete connection.ssl
break
case SSLUsage.Allowed:
connection.ssl = 'no-verify'
break
case SSLUsage.Preferred:
connection.ssl = 'true'
break
default:

2
packages/nc-gui/utils/projectCreateUtils.ts

@ -21,7 +21,7 @@ export interface DefaultConnection {
user: string
password: string
port: number | string
ssl?: Record<CertTypes, string> | 'true'
ssl?: Record<CertTypes, string> | 'no-verify' | 'true'
}
export interface SQLiteConnection {

Loading…
Cancel
Save