Skip to content

Commit

Permalink
Log changes of CPD captive portal status
Browse files Browse the repository at this point in the history
Signed-off-by: hwipl <[email protected]>
  • Loading branch information
hwipl committed Apr 19, 2024
1 parent 0e9eae6 commit 0230c77
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
Expand Up @@ -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
}
Expand All @@ -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")
}
}

Expand Down

0 comments on commit 0230c77

Please sign in to comment.