Adding SSL code to RemoteServer
This commit is contained in:
parent
f252aef9c8
commit
53f11d0d2c
1 changed files with 8 additions and 1 deletions
|
|
@ -367,7 +367,14 @@ class RemoteServerHandler(
|
||||||
val sslHandler : SslHandler = ctx.getPipeline.get(classOf[SslHandler])
|
val sslHandler : SslHandler = ctx.getPipeline.get(classOf[SslHandler])
|
||||||
|
|
||||||
// Begin handshake.
|
// Begin handshake.
|
||||||
sslHandler.handshake()
|
sslHandler.handshake().addListener( new ChannelFutureListener {
|
||||||
|
def operationComplete(future : ChannelFuture) : Unit = {
|
||||||
|
if(future.isSuccess)
|
||||||
|
openChannels.add(future.getChannel)
|
||||||
|
else
|
||||||
|
future.getChannel.close
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue