<table><tr><td style="">sitter added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D27902">View Revision</a></tr></table><br /><div><div><p>I've actually had a better idea! Well kinda and it may be trickier to do.</p>
<p>We could move the resolution dance to actual resolution time so it stops having impact on discovery.<br />
i.e. we just always use <tt style="background: #ebebeb; font-size: 13px;">"smb://" + m_prettyName + ".local"</tt> as UDS_URL for discovery. Should the user then attempt to enter that directory we'll get a listDir call and we call smbc_opendir(), if that fails we simply redirect to the url without .local, if that fails we give up. This is in fact more in line with how windows does it anyway, it too will only resolve when you try to list a server, not when it gets discovered.<br />
Obvious caveat is that either prettyname or prettyname.local must be resolvable as we cannot fall back to the IP anymore. But again, that's more in line with windows.</p>
<p>Thoughts?</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R320 KIO Extras</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D27902">https://phabricator.kde.org/D27902</a></div></div><br /><div><strong>To: </strong>sitter, ngraham, dfaure<br /><strong>Cc: </strong>meven, kde-frameworks-devel, kfm-devel, nikolaik, pberestov, iasensio, fprice, LeGast00n, cblack, fbampaloukas, alexde, GB_2, Codezela, feverfew, michaelh, spoorun, navarromorales, firef, ngraham, andrebarros, bruns, emmanuelp, mikesomov<br /></div>