ipn/{ipnserver,ipnlocal}: support incoming Taildrop on TrueNAS

Signed-off-by: Todd Neal <todd@tneal.org>
This commit is contained in:
Todd Neal
2021-12-06 22:33:45 -06:00
committed by Brad Fitzpatrick
parent ffb16cdffb
commit c18dc57861
2 changed files with 46 additions and 9 deletions

View File

@@ -142,11 +142,11 @@ type LocalBackend struct {
// same as the Network Extension lifetime and we can thus avoid
// double-copying files by writing them to the right location
// immediately.
// It's also used on Synology, but in that case DoFinalRename is
// also set true, which moves the *.partial file to its final
// It's also used on Synology & TrueNAS, but in that case DoFinalRename
// is also set true, which moves the *.partial file to its final
// name on completion.
directFileRoot string
directFileDoFinalRename bool // false on macOS, true on Synology
directFileDoFinalRename bool // false on macOS, true on Synology & TrueNAS
// statusLock must be held before calling statusChanged.Wait() or
// statusChanged.Broadcast().