This commit is contained in:
parent
b49d62780d
commit
69dab1365e
2 changed files with 2 additions and 2 deletions
|
@ -16,6 +16,7 @@ import java.time.Duration;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
@ApplicationScoped
|
@ApplicationScoped
|
||||||
public class Updater {
|
public class Updater {
|
||||||
|
@ -36,7 +37,7 @@ public class Updater {
|
||||||
PublicIpLookup publicIpLookup,
|
PublicIpLookup publicIpLookup,
|
||||||
DnsResolver dnsResolver,
|
DnsResolver dnsResolver,
|
||||||
Config config,
|
Config config,
|
||||||
@ConfigProperty(name = "ddnsclient.backoff-duration:300s") Duration backoff) {
|
@ConfigProperty(name = "ddnsclient.backoff-duration", defaultValue = "300s") Duration backoff) {
|
||||||
this.dynDnsRouter = dynDnsRouter;
|
this.dynDnsRouter = dynDnsRouter;
|
||||||
this.publicIpLookup = publicIpLookup;
|
this.publicIpLookup = publicIpLookup;
|
||||||
this.dnsResolver = dnsResolver;
|
this.dnsResolver = dnsResolver;
|
||||||
|
|
|
@ -27,7 +27,6 @@ public class DnsResolver {
|
||||||
|
|
||||||
int resolveCounter = 0;
|
int resolveCounter = 0;
|
||||||
try {
|
try {
|
||||||
|
|
||||||
Attributes result;
|
Attributes result;
|
||||||
do {
|
do {
|
||||||
if (resolveCounter == MAX_RETRIES) {
|
if (resolveCounter == MAX_RETRIES) {
|
||||||
|
|
Loading…
Reference in a new issue