Skip to content
Commit daec307b authored by Harald Sitter's avatar Harald Sitter 🐧
Browse files

smb: use prettyname.kio-discovery-wsd for hostname of wsdiscoveries

Summary:
previously we simply used the ip address. this is fairly awkward though.
instead try to deduce a resolvable host name from the pretty name.

at discovery time we now mark wsdiscovieres for special handling

at listDir time we then attempt to resolve the name.local and if that
fails strip the .local to get the presumed LLMNR/netbios name. this means
the (first) listDir may be slower while we try to find a working hostname
but discovery is still as fast as possible.

Test Plan: wsdd on linux server resolves as expected, wsd on win10 also resolves as expected

Reviewers: ngraham, meven

Reviewed By: ngraham, meven

Subscribers: kossebau, kde-frameworks-devel, kfm-devel

Tags: #dolphin, #frameworks

Differential Revision: https://phabricator.kde.org/D28513
parent a2a8facc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment