Skip to content

Support IPv6 for database servers - #7621

Closed
Marlinc wants to merge 1 commit into
nextcloud:masterfrom
CVO-Technologies:ipv6-database
Closed

Support IPv6 for database servers#7621
Marlinc wants to merge 1 commit into
nextcloud:masterfrom
CVO-Technologies:ipv6-database

Conversation

@Marlinc

Copy link
Copy Markdown

This change adds support for IPv6 addresses in the hostname field of a database connection.

Signed-off-by: Marlin Cremers <m.cremers@cvo-technologies.com>
@codecov

codecovBot commented Dec 24, 2017

Copy link
Copy Markdown

Codecov Report

Merging #7621 into master will increase coverage by <.01%.
The diff coverage is 0%.

@@ Coverage Diff @@## master #7621 +/- ##
============================================
+ Coverage 51.17% 51.17% +<.01% - Complexity 24886 24887 +1 
============================================
Files 1602 1602 Lines 94750 94750 Branches 1368 1368 ============================================
+ Hits 48485 48486 +1 + Misses 46265 46264 -1
Impacted FilesCoverage ΔComplexity Δ
lib/private/DB/ConnectionFactory.php58.97% <0%> (ø)24 <0> (+1)⬆️
apps/files_trashbin/lib/Expiration.php91.93% <0%> (+1.61%)29% <0%> (ø)⬇️

} else {
$host = $this->config->getValue('dbhost', '');
if (strpos($host, ':')) {
if (strpos($host, ':') && !strstr($host, '[')) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change this to if (strpos($host, ':') !== false && strpos($host, '[') === false) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Marlinc Could you do this change? Otherwise we would close this and adjust it ourselves.

@MorrisJobkeMorrisJobke added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Mar 6, 2018
@nickvergessen

Copy link
Copy Markdown
Member

Replaced with #9225

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developingWork in progressenhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@Marlinc@nickvergessen@MorrisJobke@ChristophWurst