1
0

g.go 518 B

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