Permalink
Browse files

Allow bracketed IPv6 address in connection string

  • Loading branch information...
Tim Mullin authored and mbeijen committed Feb 11, 2014
1 parent f2e76e1 commit 01817870eceac55d0bad1f180d339375b4373088
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/DBD/mysql.pm
View
@@ -66,6 +66,7 @@ sub _OdbcParse($$$) {
if ($dsn =~ /([^:;]*\[.*]|[^:;]*)[:;](.*)/) {
$val = $1;
$dsn = $2;
$val =~ s/\[|]//g; # Remove [] if present, the rest of the code prefers plain IPv6 addresses
} else {
$val = $dsn;
$dsn = '';

0 comments on commit 0181787

Please sign in to comment.