-
Notifications
You must be signed in to change notification settings - Fork 0
/
const.go
36 lines (28 loc) · 1.09 KB
/
const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package ovpm
const (
// Version defines the version of ovpm.
Version = "0.2.6"
// DefaultVPNPort is the default OpenVPN port to listen.
DefaultVPNPort = "1197"
// DefaultVPNProto is the default OpenVPN protocol to use.
DefaultVPNProto = UDPProto
// DefaultVPNNetwork is the default OpenVPN network to use.
DefaultVPNNetwork = "10.9.0.0/24"
// DefaultVPNDNS is the default DNS to push to clients.
DefaultVPNDNS = "8.8.8.8"
etcBasePath = "/etc/ovpm/"
varBasePath = "/var/db/ovpm/"
_DefaultConfigPath = etcBasePath + "ovpm.ini"
_DefaultDBPath = varBasePath + "db.sqlite3"
_DefaultVPNConfPath = varBasePath + "server.conf"
_DefaultVPNCCDPath = varBasePath + "ccd"
_DefaultCertPath = varBasePath + "server.crt"
_DefaultKeyPath = varBasePath + "server.key"
_DefaultCACertPath = varBasePath + "ca.crt"
_DefaultCAKeyPath = varBasePath + "ca.key"
_DefaultDHParamsPath = varBasePath + "dh4096.pem"
_DefaultCRLPath = varBasePath + "crl.pem"
)
// Testing is used to determine whether we are testing or running normally.
// Set it to true when testing.
var Testing = false