We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 316b65f commit 7fe43c4Copy full SHA for 7fe43c4
1 file changed
UUID.php
@@ -186,10 +186,14 @@ public static function v1(string|int $address = null): string
186
if ($node = `hostname -i 2> /dev/null`) {
187
return $node = vsprintf('%02x%02x%02x%02x', explode('.', $node));
188
}
189
+ // @codeCoverageIgnoreStart
190
if ($node = `hostname 2> /dev/null`) {
191
+ // macOS
192
$node = gethostbyname(trim($node));
193
194
195
+ // @codeCoverageIgnoreEnd
196
+
197
// Cannot identify IP or host, fallback as described in
198
// http://tools.ietf.org/html/rfc4122#section-4.5
199
// https://en.wikipedia.org/wiki/MAC_address#Unicast_vs._multicast_(I/G_bit)
0 commit comments