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.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
|
||||
@ApplicationScoped
|
||||
public class Updater {
|
||||
|
@ -36,7 +37,7 @@ public class Updater {
|
|||
PublicIpLookup publicIpLookup,
|
||||
DnsResolver dnsResolver,
|
||||
Config config,
|
||||
@ConfigProperty(name = "ddnsclient.backoff-duration:300s") Duration backoff) {
|
||||
@ConfigProperty(name = "ddnsclient.backoff-duration", defaultValue = "300s") Duration backoff) {
|
||||
this.dynDnsRouter = dynDnsRouter;
|
||||
this.publicIpLookup = publicIpLookup;
|
||||
this.dnsResolver = dnsResolver;
|
||||
|
|
|
@ -27,7 +27,6 @@ public class DnsResolver {
|
|||
|
||||
int resolveCounter = 0;
|
||||
try {
|
||||
|
||||
Attributes result;
|
||||
do {
|
||||
if (resolveCounter == MAX_RETRIES) {
|
||||
|
|
Loading…
Reference in a new issue