We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66f66e1 commit 4d86ceeCopy full SHA for 4d86cee
hack/test-port-forwarding.pl
@@ -22,7 +22,9 @@
22
23
my $instance = shift;
24
25
-my $ipv4 = inet_ntoa(scalar gethostbyname(hostname())) or die;
+my $addr = scalar gethostbyname(hostname());
26
+# If hostname address cannot be determines, use localhost to trigger fallback to system_profiler lookup
27
+my $ipv4 = length $addr ? inet_ntoa($addr) : "127.0.0.1";
28
my $ipv6 = ""; # todo
29
30
# macOS Github runners seem to use "localhost" as the hostname
0 commit comments