Browse Source

fix: ssl mode mapping

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/4234/head
mertmit 2 years ago
parent
commit
48bdf248b6
  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