fix
parent
cd29406af7
commit
97859b4044
|
@ -194,12 +194,13 @@ export default class SiteInfo extends Command {
|
||||||
public async getServerInformation(domain: string) {
|
public async getServerInformation(domain: string) {
|
||||||
let r: AxiosResponse;
|
let r: AxiosResponse;
|
||||||
try {
|
try {
|
||||||
r = await axios.get(domain, {
|
r = await axios.get(`https://${domain}`, {
|
||||||
httpsAgent: new https.Agent({
|
httpsAgent: new https.Agent({
|
||||||
rejectUnauthorized: false,
|
rejectUnauthorized: false,
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
this.client.util.signale.error(err);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue