diff --git a/src/Traits/RegistrarMethods.php b/src/Traits/RegistrarMethods.php index 9d1bc3a..46c2157 100644 --- a/src/Traits/RegistrarMethods.php +++ b/src/Traits/RegistrarMethods.php @@ -83,7 +83,7 @@ public function registrarStop(Worker $worker): void */ public function registrarGetHostIp(): string { - return $this->registrarHostIp ?: ($this->registrarHostIp = trim(shell_exec('curl -s ifconfig.me'))); + return $this->registrarHostIp ?: ($this->registrarHostIp = trim(shell_exec('curl -s ifconfig.me') ?: '')); } /**