aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorGravatar John Hood <cgull@glup.org>2016-06-09 03:31:34 -0400
committerGravatar John Hood <cgull@glup.org>2016-06-09 11:51:35 -0400
commit1b2ddc2e81b3b0b29a26d8821bcabf96043eb11c (patch)
tree33d50b910eb12e9df2c588df6c2e2b4c0bd81c96 /scripts
parent274b5a4d14be284bf51c6b4cac07336e905699ad (diff)
Make OS X mDNS/Bonjour .local IPv6 addresses work.
OS X advertises IPv6 link-local addresses for .local hostnames. getaddrinfo() correctly reports interface identifiers for these, but we were discarding them by using the socket peer host address instead.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mosh.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mosh.pl b/scripts/mosh.pl
index acb8234..f60ebce 100755
--- a/scripts/mosh.pl
+++ b/scripts/mosh.pl
@@ -242,7 +242,7 @@ if ( ! defined $fake_proxy ) {
PeerHost => $addr_string,
PeerPort => $port,
Proto => 'tcp' )) {
- print STDERR 'MOSH IP ', $sock->peerhost, "\n";
+ print STDERR 'MOSH IP ', $addr_string, "\n";
last;
} else {
$err = $@;