forked from kevinowino869/mitrobill
bandwith 0=unlimited
add bandwith 0=unlimited or null for device MikrotikHotspot and MikrotikPppoe
This commit is contained in:
@ -122,6 +122,9 @@ class MikrotikHotspot
|
||||
if (!empty(trim($bw['burst']))) {
|
||||
$rate .= ' ' . $bw['burst'];
|
||||
}
|
||||
if ($bw['rate_up'] == '0' || $bw['rate_down'] == '0') {
|
||||
$rate = '';
|
||||
}
|
||||
$addRequest = new RouterOS\Request('/ip/hotspot/user/profile/add');
|
||||
$client->sendSync(
|
||||
$addRequest
|
||||
@ -202,6 +205,9 @@ class MikrotikHotspot
|
||||
if (!empty(trim($bw['burst']))) {
|
||||
$rate .= ' ' . $bw['burst'];
|
||||
}
|
||||
if ($bw['rate_up'] == '0' || $bw['rate_down'] == '0') {
|
||||
$rate = '';
|
||||
}
|
||||
$setRequest = new RouterOS\Request('/ip/hotspot/user/profile/set');
|
||||
$client->sendSync(
|
||||
$setRequest
|
||||
|
Reference in New Issue
Block a user