Adds SSL cert checking results
This commit is contained in:
1 parent
7b2c27c0b1
commit
b17c2f0b2d
3 files changed
+128
-4
No files matched your search
@@ -75,8 +75,11 @@ export interface HostNames {
|
||||
hostnames: string[],
|
||||
};
|
||||
|
||||
export const getHostNames = (response: any): HostNames => {
|
||||
export const getHostNames = (response: any): HostNames | null => {
|
||||
const { hostnames, domains } = response;
|
||||
if ((!domains || domains.length < 1) && (!hostnames || hostnames.length < 1)) {
|
||||
return null;
|
||||
}
|
||||
const results: HostNames = {
|
||||
domains: domains || [],
|
||||
hostnames: hostnames || [],
|
||||
|
||||
Reference in new issue
Block a user