smb: fix ipv6 support

Authored by sitter on Mar 3 2020, 10:48 AM.

Description

smb: fix ipv6 support

Summary:
libsmbc doesn't presently support smb://[ABCD::DCBA]/ uris because it
has very opinionated colon parsing. as a workaround we convert hosts
that are ipv6 addresses to their windows ipv6 literal representation.
that is basically s/:/-/g and s/%/s/g and appending .ipv6-literal.net.

BUG: 417682
FIXED-IN: 20.04

Test Plan: builds, test passes, 'smb://[::1]/foo' works as expected

Reviewers: ngraham

Reviewed By: ngraham

Subscribers: cfeck, thiago, kde-frameworks-devel, kfm-devel

Tags: Dolphin, Frameworks

Differential Revision: https://phabricator.kde.org/D27802

Details

Committed
sitterMar 6 2020, 4:13 PM
Reviewer
ngraham
Differential Revision
D27802: smb: fix ipv6 support
Parents
R320:d8d92670372a: smb: add a unit test for smburl
Branches
Unknown
Tags
Unknown