Skip to content

Commit

Permalink
Remove deprecate usage of dtlsConfig.getDtlsRole()
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernard31 committed Jun 3, 2022
1 parent 13dea84 commit 4032353
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public static LeshanServer createLeshanServer(LeshanServerDemoCLI cli) throws Ex

X509Certificate serverCertificate = cli.identity.getCertChain()[0];
// autodetect serverOnly
if (dtlsConfig.getIncompleteConfig().getDtlsRole() == DtlsRole.BOTH) {
if (dtlsConfig.getIncompleteConfig().get(DtlsConfig.DTLS_ROLE) == DtlsRole.BOTH) {
if (serverCertificate != null) {
if (CertPathUtil.canBeUsedForAuthentication(serverCertificate, false)) {
if (!CertPathUtil.canBeUsedForAuthentication(serverCertificate, true)) {
Expand Down

0 comments on commit 4032353

Please sign in to comment.