frp/g/g.go

35 lines
656 B
Go
Raw Normal View History

2018-04-10 17:46:49 +08:00
package g
import (
"github.com/fatedier/frp/models/config"
)
var (
GlbClientCfg *ClientCfg
GlbServerCfg *ServerCfg
GlbServerSubSectionMap map[string]*config.SubServerSectionConf
2018-04-10 17:46:49 +08:00
)
func init() {
GlbClientCfg = &ClientCfg{
ClientCommonConf: *config.GetDefaultClientConf(),
}
GlbServerCfg = &ServerCfg{
ServerSectionConf: *config.GetDefaultServerConf(),
2018-04-10 17:46:49 +08:00
}
GlbServerSubSectionMap = make(map[string]*config.SubServerSectionConf)
2018-04-10 17:46:49 +08:00
}
type ClientCfg struct {
config.ClientCommonConf
CfgFile string
ServerUdpPort int // this is configured by login response from frps
}
type ServerCfg struct {
config.ServerSectionConf
2018-04-10 17:46:49 +08:00
CfgFile string
}