fix order of nat detector (#414)

Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
pull/419/head
Karim T 5 years ago committed by GitHub
parent e28396a5dc
commit 145710abf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      besu/src/main/java/org/hyperledger/besu/RunnerBuilder.java

@ -597,7 +597,7 @@ public class RunnerBuilder {
final NatMethod detectedNatMethod = final NatMethod detectedNatMethod =
Optional.of(natMethod) Optional.of(natMethod)
.filter(not(isEqual(NatMethod.AUTO))) .filter(not(isEqual(NatMethod.AUTO)))
.orElse(NatService.autoDetectNatMethod(new DockerDetector(), new KubernetesDetector())); .orElse(NatService.autoDetectNatMethod(new KubernetesDetector(), new DockerDetector()));
switch (detectedNatMethod) { switch (detectedNatMethod) {
case UPNP: case UPNP:
return Optional.of(new UpnpNatManager()); return Optional.of(new UpnpNatManager());

Loading…
Cancel
Save