mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-11-27 07:06:03 +01:00
Add speed profiles to limit the bandwidth of each peer
This commit is contained in:
@@ -125,6 +125,8 @@ def _clean_section_report(sections):
|
||||
'hash': str(report.get('hash', ''))[:64],
|
||||
'status': status,
|
||||
'message': str(report.get('message', ''))[:1000],
|
||||
# Problems that did not stop the section, such as speed limits that could not be applied
|
||||
'warning': str(report.get('warning', ''))[:1000] if status == 'ok' else '',
|
||||
'updated': timezone.now().isoformat(),
|
||||
}
|
||||
return cleaned_sections
|
||||
|
||||
Reference in New Issue
Block a user