Skip to content

Commit

Permalink
fix order of nat detector (#414)
Browse files Browse the repository at this point in the history
Signed-off-by: Karim TAAM <[email protected]>
  • Loading branch information
matkt authored Feb 20, 2020
1 parent e28396a commit 145710a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion besu/src/main/java/org/hyperledger/besu/RunnerBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ private Optional<NatManager> buildNatManager(final NatMethod natMethod) {
final NatMethod detectedNatMethod =
Optional.of(natMethod)
.filter(not(isEqual(NatMethod.AUTO)))
.orElse(NatService.autoDetectNatMethod(new DockerDetector(), new KubernetesDetector()));
.orElse(NatService.autoDetectNatMethod(new KubernetesDetector(), new DockerDetector()));
switch (detectedNatMethod) {
case UPNP:
return Optional.of(new UpnpNatManager());
Expand Down

0 comments on commit 145710a

Please sign in to comment.