Skip to content

Commit

Permalink
feat(netty): require remote address when using DtlsClientHandshakeCha…
Browse files Browse the repository at this point in the history
…nnelHandler
  • Loading branch information
szysas committed Oct 28, 2024
1 parent fb0e60a commit ad4d60d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class DtlsClientHandshakeChannelHandler(
}

override fun channelActive(ctx: ChannelHandlerContext) {
require(ctx.channel().remoteAddress() is InetSocketAddress) { "Remote address must be defined" }
this.ctx = ctx
stepAndSchedule()
}
Expand Down

0 comments on commit ad4d60d

Please sign in to comment.