添加版本号

This commit is contained in:
caohaidi 2018-12-28 18:44:19 +08:00
parent 594ae40261
commit 522a665ddc

View File

@ -17,6 +17,7 @@ package frp
import (
"github.com/fatedier/frp/cmd/frpc/sub"
"github.com/fatedier/frp/cmd/frps/frps"
"github.com/fatedier/frp/utils/version"
"github.com/fatedier/golib/crypto"
)
@ -49,3 +50,8 @@ func StopFrps() error {
func IsFrpsRunning() bool {
return frps.IsFrpsRunning()
}
// Version frp 版本号
func Version() string {
return version.Full()
}