Skip to content

Commit

Permalink
Merge pull request #77 from telekom-mms/feature/log-cpd-status
Browse files Browse the repository at this point in the history
Log changes of CPD captive portal status
hwipl authored Apr 23, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 1f80a4d + b39a8d8 commit d47ebf2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/trafpol/trafpol.go
Original file line number Diff line number Diff line change
@@ -65,6 +65,7 @@ func (t *TrafPol) handleCPDReport(ctx context.Context, report *cpd.Report) {
// remove ports from allowed ports
removePortalPorts(ctx, t.config.PortalPorts)
t.capPortal = false
log.WithField("capPortal", t.capPortal).Info("TrafPol changed CPD status")
}
return
}
@@ -73,6 +74,7 @@ func (t *TrafPol) handleCPDReport(ctx context.Context, report *cpd.Report) {
if !t.capPortal {
addPortalPorts(ctx, t.config.PortalPorts)
t.capPortal = true
log.WithField("capPortal", t.capPortal).Info("TrafPol changed CPD status")
}
}

0 comments on commit d47ebf2

Please sign in to comment.