mirror of
https://github.com/certd/certd.git
synced 2026-04-14 20:40:53 +08:00
perf: 站点监控增加是否自动同步IP开关
This commit is contained in:
@@ -46,8 +46,8 @@ export class SiteInfoEntity {
|
||||
@Column({ name: 'ip_check', comment: '是否检查IP' })
|
||||
ipCheck: boolean;
|
||||
|
||||
@Column({ name: 'ip_scan', comment: '是否自动获取IP' })
|
||||
ipScan: boolean;
|
||||
@Column({ name: 'ip_sync_auto', comment: '是否自动同步IP' })
|
||||
ipSyncAuto: boolean;
|
||||
|
||||
@Column({ name: 'ip_count', comment: 'ip数量' })
|
||||
ipCount: number
|
||||
|
||||
@@ -237,7 +237,12 @@ export class SiteInfoService extends BaseService<SiteInfoEntity> {
|
||||
logger.error("send notify error", e);
|
||||
}
|
||||
};
|
||||
await this.siteIpService.syncAndCheck(site, retryTimes,onFinished);
|
||||
if (!site.ipSyncAuto) {
|
||||
await this.siteIpService.checkAll(site, retryTimes,onFinished);
|
||||
}else{
|
||||
await this.siteIpService.syncAndCheck(site, retryTimes,onFinished);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user