Compare commits

...

3 Commits

Author SHA1 Message Date
kirill.labutin c1d68c0bfa hotfix as fetch failure 2026-03-06 14:19:31 +03:00
kirillius 8672d74174 Merge pull request 'hotfix TDNS time parsing' (#2) from hotfix/tdns-time-parsing into master
Reviewed-on: #2
2026-03-06 11:08:47 +00:00
kirill.labutin 256c70571a hotfix TDNS time parsing 2026-03-06 12:30:00 +03:00
4 changed files with 6 additions and 7 deletions

View File

@ -43,8 +43,7 @@ public class HEInfoProvider implements ASInfoProvider {
return getIPv4Subnets(inputStream);
}
} else {
SystemLogger.error("Unable to get info about AS" + as, CTX);
return Collections.emptyList();
throw new RuntimeException("Unable to get info about AS" + as);
}
}
}

View File

@ -39,8 +39,7 @@ public class RIPEInfoProvider implements ASInfoProvider {
return getIPv4Subnets(inputStream);
}
} else {
SystemLogger.error("Unable to get info about AS" + as, CTX);
return Collections.emptyList();
throw new RuntimeException("Unable to get info about AS" + as);
}
}
}

View File

@ -15,6 +15,7 @@ import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.nio.charset.StandardCharsets;
import java.time.Duration;
import java.time.Instant;
import java.util.*;
/**
@ -93,7 +94,7 @@ public class TDNSAPI implements Closeable {
private long soaSerial;
@JSONProperty(required = false)
@Getter
private Date expiry;
private Instant expiry;
@JSONProperty(required = false)
@Getter
private boolean isExpired;
@ -105,7 +106,7 @@ public class TDNSAPI implements Closeable {
private boolean disabled;
@JSONProperty
@Getter
private Date lastModified;
private Instant lastModified;
}
/**

View File

@ -92,7 +92,7 @@
<dependency>
<groupId>ru.kirillius</groupId>
<artifactId>json-rpc-servlet</artifactId>
<version>2.1.4.0</version>
<version>2.1.5.0</version>
</dependency>
</dependencies>