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