mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-24 23:36:49 +09:00
Add logout method to tsic
This commit is contained in:
1 parent
b54c0e3d22
commit
b7d7fc57c4
3 files changed
+11
-1
No files matched your search
@@ -270,6 +270,15 @@ func (t *TailscaleInContainer) UpWithLoginURL(
|
||||
return loginURL, nil
|
||||
}
|
||||
|
||||
func (t *TailscaleInContainer) Logout() error {
|
||||
_, _, err := t.Execute([]string{"tailscale", "logout"})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (t *TailscaleInContainer) IPs() ([]netip.Addr, error) {
|
||||
if t.ips != nil && len(t.ips) != 0 {
|
||||
return t.ips, nil
|
||||
|
||||
Reference in new issue
Block a user