mirror of
https://github.com/fatedier/frp.git
synced 2024-12-15 10:58:59 +08:00
33 lines
518 B
Go
33 lines
518 B
Go
|
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
|
||
|
}
|