rapid7/metasploit-framework — pull request #2646 by sempervictus (2013-11-17 09:10:46+00:00)
Title: Allow meterpreter sessions to resolve L3 address

With stdapi now resolving IPv6 for interfaces, remote hosts behind
NAT are often returning an IPv6 session_host due to it coming up
first in the available interfaces list.

Filter out available default routes based on the peer's IP address.
This does not address 6to4/4to6 tunnels, but should resolve the
issue with most sessions.