const.go 1017 B

123456789101112131415161718192021222324252627282930313233
  1. package ovpm
  2. const (
  3. // Version defines the version of ovpm.
  4. Version = "0.1.10"
  5. // DefaultVPNPort is the default OpenVPN port to listen.
  6. DefaultVPNPort = "1197"
  7. // DefaultVPNProto is the default OpenVPN protocol to use.
  8. DefaultVPNProto = UDPProto
  9. etcBasePath = "/etc/ovpm/"
  10. varBasePath = "/var/db/ovpm/"
  11. _DefaultConfigPath = etcBasePath + "ovpm.ini"
  12. _DefaultDBPath = varBasePath + "db.sqlite3"
  13. _DefaultVPNConfPath = varBasePath + "server.conf"
  14. _DefaultVPNCCDPath = varBasePath + "ccd/"
  15. _DefaultCertPath = varBasePath + "server.crt"
  16. _DefaultKeyPath = varBasePath + "server.key"
  17. _DefaultCACertPath = varBasePath + "ca.crt"
  18. _DefaultCAKeyPath = varBasePath + "ca.key"
  19. _DefaultDHParamsPath = varBasePath + "dh4096.pem"
  20. _DefaultCRLPath = varBasePath + "crl.pem"
  21. _DefaultServerNetwork = "10.9.0.0"
  22. _DefaultServerNetMask = "255.255.255.0"
  23. )
  24. // Testing is used to determine wether we are testing or running normally.
  25. // Set it to true when testing.
  26. var Testing = false