frp/g/g.go
OoyonghongoO 2b96252ca4 UPDATE
2024-10-05 02:03:24 +08:00

33 lines
527 B
Go

package g
import (
config "github.com/fatedier/frp/pkg/config/legacy"
)
var (
GlbClientCfg *ClientCfg
GlbServerCfg *ServerCfg
)
func init() {
GlbClientCfg = &ClientCfg{
ClientCommonConf: config.GetDefaultClientConf(),
}
GlbServerCfg = &ServerCfg{
ServerCommonConf: config.GetDefaultServerConf(),
}
}
type ClientCfg struct {
config.ClientCommonConf
CfgFile string
ServerUdpPort int // this is configured by login response from frps
}
type ServerCfg struct {
config.ServerCommonConf
CfgFile string
}