mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-12-26 06:56:36 +08:00
增加SSH登录建议端口接口
This commit is contained in:
@@ -2,4 +2,16 @@ package models
|
||||
|
||||
import (
|
||||
_ "github.com/go-sql-driver/mysql"
|
||||
"github.com/iwind/TeaGo/dbs"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestNodeLoginDAO_FindFrequentPorts(t *testing.T) {
|
||||
dbs.NotifyReady()
|
||||
|
||||
ports, err := SharedNodeLoginDAO.FindFrequentPorts(nil)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log(ports)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user