File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed
components/main/Main/ConnectionSelector Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -60,11 +60,10 @@ const actions = {
60
60
function handleRedis ( config , override ) {
61
61
dispatch ( { type : 'updateConnectStatus' , data : 'Redis connecting...' } ) ;
62
62
if ( config . ssl ) {
63
- config . tls = {
64
- ca : config . ca ,
65
- key : config . key ,
66
- cert : config . cert
67
- }
63
+ config . tls = { } ;
64
+ if ( config . tlsca ) config . tls . ca = config . tlsca ;
65
+ if ( config . tlskey ) config . tls . key = config . tlskey ;
66
+ if ( config . tlscert ) config . tls . cert = config . tlscert ;
68
67
}
69
68
const redis = new Redis ( _ . assign ( { } , config , override , {
70
69
showFriendlyErrorStack : true ,
Original file line number Diff line number Diff line change @@ -132,9 +132,9 @@ class Config extends React.Component {
132
132
< input type = "checkbox" id = "ssl" onChange = { this . handleChange . bind ( this , 'ssl' ) } checked = { this . getProp ( 'ssl' ) } />
133
133
</ div >
134
134
< div style = { { display : this . getProp ( 'ssl' ) ? 'block' : 'none' } } >
135
- { this . renderCertInput ( 'Private Key' , 'key ' ) }
136
- { this . renderCertInput ( 'Certificate' , 'cert ' ) }
137
- { this . renderCertInput ( 'CA' , 'ca ' ) }
135
+ { this . renderCertInput ( 'Private Key' , 'tlskey ' ) }
136
+ { this . renderCertInput ( 'Certificate' , 'tlscert ' ) }
137
+ { this . renderCertInput ( 'CA' , 'tlsca ' ) }
138
138
</ div >
139
139
< div className = "nt-form-row" >
140
140
< label htmlFor = "ssh" > SSH Tunnel:</ label >
@@ -191,7 +191,7 @@ class Config extends React.Component {
191
191
</ div >
192
192
</ div >
193
193
</ div >
194
- < div className = "nt-button-group nt-button-group--pull-right" style = { { width : 500 , margin : '10px auto 0' } } >
194
+ < div className = "nt-button-group nt-button-group--pull-right" style = { { width : 500 , margin : '10px auto 0' , paddingBottom : 10 } } >
195
195
< button className = "nt-button" style = {
196
196
{ float : 'left' }
197
197
} onClick = { ( ) => {
You can’t perform that action at this time.
0 commit comments