g.go 341 B

12345678910111213141516171819202122
  1. package g
  2. import (
  3. "github.com/fatedier/frp/models/config"
  4. )
  5. var (
  6. GlbClientCfg *ClientCfg
  7. )
  8. func init() {
  9. GlbClientCfg = &ClientCfg{
  10. ClientCommonConf: *config.GetDefaultClientConf(),
  11. }
  12. }
  13. type ClientCfg struct {
  14. config.ClientCommonConf
  15. CfgFile string
  16. ServerUdpPort int // this is configured by login response from frps
  17. }