mirror of
https://github.com/openziti/zrok.git
synced 2025-01-09 07:28:15 +01:00
inflow share details (#606)
This commit is contained in:
parent
22002477be
commit
6256055a99
@ -227,6 +227,12 @@ func (a *Agent) enforce(u *metrics.Usage) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
shr, err := a.str.FindShareWithToken(u.ShareToken, trx)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
logrus.Infof("share: '%v', shareMode: '%v', backendMode: '%v'", shr.Token, shr.ShareMode, shr.BackendMode)
|
||||||
|
|
||||||
if enforce, warning, rxBytes, txBytes, err := a.checkBandwidthLimit(u.AccountId); err == nil {
|
if enforce, warning, rxBytes, txBytes, err := a.checkBandwidthLimit(u.AccountId); err == nil {
|
||||||
if enforce {
|
if enforce {
|
||||||
enforced := false
|
enforced := false
|
||||||
|
Loading…
Reference in New Issue
Block a user