use callback if necessary

This commit is contained in:
AJ ONeal 2016-10-11 13:57:21 -06:00
parent 64cfee686e
commit 0ca2c91731
1 changed files with 4 additions and 0 deletions

View File

@ -135,6 +135,10 @@ stunnel.connect({
httpsServer.emit('connection', myDuplex);
if (cb) {
cb();
}
return myDuplex;
}
});