fix order of nat detector (#414)

Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
This commit is contained in:
Karim T
2020-02-20 09:36:52 +01:00
committed by GitHub
parent e28396a5dc
commit 145710abf8

View File

@@ -597,7 +597,7 @@ public class RunnerBuilder {
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());