Skip to content
  • Harald Sitter's avatar
    smb: fix ipv6 support · bb83a071
    Harald Sitter authored
    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
    bb83a071