mobile-shell / mosh

Mobile Shell
https://mosh.org
GNU General Public License v3.0
12.7k stars 743 forks source link

mosh crashes with -6 IPv6 #1302

Open haraldhh opened 11 months ago

haraldhh commented 11 months ago

The 1.3.2 version that comes with Ubuntu 22.04 started crashing on AAAA-records today, maybe the libc and friends update that came today?

I cloned this repo, and version 1.4.0 doesn't crash if there's an AAAA-record in DNS. It does crash however exactly in the same way as 1.3.2 when using the -6 flag.

 $ ./mosh -6 $host
Use of uninitialized value $addr_string in concatenation (.) or string at ./mosh line 283.
Use of uninitialized value $err in concatenation (.) or string at ./mosh line 283.
./mosh: Could not connect to (redacted), last tried : 
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535
./mosh: Did not find remote IP address (is SSH ProxyCommand disabled?).