mirror of
https://github.com/openziti/zrok.git
synced 2025-08-24 05:55:38 +02:00
implementation of /agent/share (#967)
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user