implementation of /agent/share (#967)

This commit is contained in:
Michael Quigley
2025-06-02 15:56:48 -04:00
parent e991ecf0cb
commit 1aad5ff2b2
17 changed files with 338 additions and 42 deletions

View File

@@ -47,8 +47,8 @@ func (a *Agent) SharePrivate(req *SharePrivateRequest) (shareToken string, err e
}
shr.insecure = req.Insecure
if req.Closed {
shrCmd = append(shrCmd, "--closed")
if !req.Closed {
shrCmd = append(shrCmd, "--open")
}
shr.closed = req.Closed