Add logging for speed limit and traffic control commands
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user