Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow bracketed IPv6 address in connection string
  • Loading branch information
Tim Mullin authored and mbeijen committed Feb 6, 2015
1 parent f2e76e1 commit 0181787
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/DBD/mysql.pm
Expand Up @@ -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 = '';
Expand Down

0 comments on commit 0181787

Please sign in to comment.