Skip to content

Commit b396dbe

Browse files
fixing bug on generateMac function
1 parent 6e8216e commit b396dbe

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/Online/Command/Server/Server.php

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -257,19 +257,12 @@ public function editBackupServer($serverId, $password = 'default', $autoLogin =
257257

258258
/**
259259
* function getFailoverIp
260-
* @param boolean $listFO
261260
* @return string
262261
*/
263-
public function getFailoverIp($listFO = false)
262+
public function getFailoverIp($protected)
264263
{
265264

266-
$query = self::buildQuery(
267-
'/server/failover',
268-
'GET',
269-
array(
270-
'protected' => $listFO,
271-
)
272-
);
265+
$query = self::buildQuery('/server/failover', 'GET', ['protected'=>$protected]);
273266

274267
return self::execQuery($query);
275268
}
@@ -331,7 +324,7 @@ public function generateMac($failoverIp, $type)
331324
'/server/failover/generateMac',
332325
'POST',
333326
array(
334-
'source' => $failoverIp,
327+
'address' => $failoverIp,
335328
'type' => $type
336329
)
337330
);

0 commit comments

Comments
 (0)