function testSystemUnixNET() { $IfConfig = new IfConfig(); $result = $IfConfig->GetIPAddressList(); print_r($result); $this->assertTrue($result, "ValidateLicenseFile returned true"); }
public function execute() { $oldip = $ip = ''; while (true) { $oldip = $ip; try { $temp_ip = IfConfig::getIp(); if ($temp_ip && $oldip !== $temp_ip) { $ip = $temp_ip; $this->update($ip); } } catch (Exception $e) { echo "WARNING: " . $e->getMessage() . "\n"; } sleep($this->sleep); } }