changeset 101282:986acdda4aac

* net/tramp.el (tramp-ipv6-regexp): The regexp shall cover also IPv4 mapped IPv6 addresses.
author Michael Albinus <michael.albinus@gmx.de>
date Mon, 19 Jan 2009 06:51:55 +0000
parents 4c55cfffda90
children dc4bcae2bbbc
files lisp/net/tramp.el
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/net/tramp.el	Mon Jan 19 01:06:25 2009 +0000
+++ b/lisp/net/tramp.el	Mon Jan 19 06:51:55 2009 +0000
@@ -1213,9 +1213,11 @@
   "*Regexp matching left hand side of IPv6 addresses.
 Derived from `tramp-prefix-ipv6-format'.")
 
-;; The following regexp is a bit sloppy.  But it shall serve our purposes.
+;; The following regexp is a bit sloppy.  But it shall serve our
+;; purposes.  It covers also IPv4 mapped IPv6 addresses, like in
+;; "::ffff:192.168.0.1".
 (defconst tramp-ipv6-regexp
-  "\\(?:\\(?:[a-zA-Z0-9]+\\)?:\\)+[a-zA-Z0-9]+"
+  "\\(?:\\(?:[a-zA-Z0-9]+\\)?:\\)+[a-zA-Z0-9.]+"
   "*Regexp matching IPv6 addresses.")
 
 (defconst tramp-postfix-ipv6-format