Commit f61111e 1 parent 4b19dee commit f61111e Copy full SHA for f61111e
File tree 1 file changed +6
-10
lines changed
1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -191,21 +191,17 @@ class POP3Server extends EventEmitter {
191
191
}
192
192
193
193
if ( this . options . secure ) {
194
- // appy changes
195
-
194
+ // apply changes
196
195
Object . keys ( defaultTlsOptions || { } ) . forEach ( key => {
197
196
if ( ! ( key in this . options ) ) {
198
197
this . options [ key ] = defaultTlsOptions [ key ] ;
199
198
}
200
199
} ) ;
201
-
202
- // ensure SNICallback method
203
- if ( typeof this . options . SNICallback !== 'function' ) {
204
- // create default SNI handler
205
- this . options . SNICallback = ( servername , cb ) => {
206
- cb ( null , this . secureContext . get ( servername ) ) ;
207
- } ;
208
- }
200
+ } else if ( typeof this . options . SNICallback !== 'function' ) {
201
+ // create a default SNI handler
202
+ this . options . SNICallback = ( servername , cb ) => {
203
+ cb ( null , this . secureContext . get ( servername ) ) ;
204
+ } ;
209
205
}
210
206
}
211
207
You can’t perform that action at this time.
0 commit comments