mirror of https://github.com/fatedier/frp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
518 B
33 lines
518 B
7 years ago
|
package g
|
||
|
|
||
|
import (
|
||
|
"github.com/fatedier/frp/models/config"
|
||
|
)
|
||
|
|
||
|
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
|
||
|
}
|