Skip to content

Commit

Permalink
Bootstrap server does not need to initiate DTLS Handshake
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernard31 committed Jun 25, 2019
1 parent df53c51 commit 23707da
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,11 @@ public BootstrapHandler create(BootstrapStore store, LwM2mBootstrapRequestSender
}
}

// Bootstrap Server acts as Server only : It does not need to initiate handshake
if (incompleteConfig.isServerOnly() == null) {
dtlsConfigBuilder.setServerOnly(true);
}

// Deactivate SNI by default
// TODO should we support SNI ?
if (incompleteConfig.isSniEnabled() == null) {
Expand Down

0 comments on commit 23707da

Please sign in to comment.