Add logging for speed limit and traffic control commands

This commit is contained in:
ImBenji
2025-08-05 12:08:06 +01:00
parent 7b1278980e
commit a5fc0e3644
2 changed files with 37 additions and 5 deletions

View File

@@ -96,7 +96,9 @@ Future<bool> deletePeer(String publicKey) async {
}
Future<void> setSpeedLimit(String publicKey, int speedKbps) async {
print('Setting speed limit for peer $publicKey to ${speedKbps}kbps');
final peerIP = await _getPeerIP(publicKey);
print('Found peer IP: $peerIP for publicKey: $publicKey');
if (peerIP == null) throw Exception('Peer not found');
await TrafficControlService.setSpeedLimit(peerIP, speedKbps);