Initial AFP support implementation

This commit is contained in:
AlexSSD7 2023-09-01 15:15:40 +01:00
commit 7ba79ff803
7 changed files with 100 additions and 15 deletions

View file

@ -5,8 +5,6 @@ import (
"fmt"
"net"
"log/slog"
"github.com/AlexSSD7/linsk/vm"
"github.com/pkg/errors"
)
@ -61,7 +59,5 @@ func (b *FTPBackend) Apply(ctx context.Context, sharePWD string, vc *VMShareCont
return "", errors.Wrap(err, "start ftp server")
}
slog.Info("Started the network share successfully", "type", "ftp")
return "ftp://" + b.extIP.String() + ":" + fmt.Sprint(b.sharePort), nil
}