mirror of
https://github.com/luscis/openlan.git
synced 2025-10-12 20:10:08 +08:00
clone from danieldin95
This commit is contained in:
23
pkg/cache/openvpn_test.go
vendored
Executable file
23
pkg/cache/openvpn_test.go
vendored
Executable file
@@ -0,0 +1,23 @@
|
||||
package cache
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
func Test_VPNClient_ListStatus(t *testing.T) {
|
||||
fmt.Println(time.Now().Unix())
|
||||
for v := range VPNClient.List("yunex") {
|
||||
if v == nil {
|
||||
break
|
||||
}
|
||||
fmt.Println(v)
|
||||
}
|
||||
for v := range VPNClient.List("guest") {
|
||||
if v == nil {
|
||||
break
|
||||
}
|
||||
fmt.Println(v)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user