Add support to filter sub-domains as well

This commit is contained in:
Patrick Pacher
2020-04-15 09:59:59 +02:00
parent 55e4ae3be1
commit 86a449a619
5 changed files with 107 additions and 15 deletions

View File

@@ -201,11 +201,13 @@ func triggerOnlineStatusInvestigation() {
func monitorOnlineStatus(ctx context.Context) error {
for {
timeout := time.Minute
if GetOnlineStatus() != StatusOnline {
timeout = time.Second
log.Debugf("checking online status again in %s because current status is %s", timeout, GetOnlineStatus())
}
timeout := 5 * time.Minute
/*
if GetOnlineStatus() != StatusOnline {
timeout = time.Second
log.Debugf("checking online status again in %s because current status is %s", timeout, GetOnlineStatus())
}
*/
// wait for trigger
select {
case <-ctx.Done():