-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.go
More file actions
40 lines (32 loc) · 799 Bytes
/
settings.go
File metadata and controls
40 lines (32 loc) · 799 Bytes
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
37
38
39
40
package main
import (
"compress/gzip"
"time"
)
const (
protocolVersion = 2
SERVER_KEY = 0xCAFE69C0FFEE
CLIENT_KEY = 0xADD069C0FFEE
publicReconDelaySec = 2
privateReconDelaySec = 5
ephemeralLife = time.Minute
ephemeralTicker = time.Second * 15
htmlActiveUpdate = time.Second * 15
htmlIdleUpdate = time.Minute * 15
maxAttempts = 60 / publicReconDelaySec
attemptResetAfter = time.Minute * 5
tunnelLife = time.Minute
bufferSizeUDP = 65 * 1024
downloadURL = "https://eu.m45sci.xyz/#downloads"
updateLink = "https://m45sci.xyz/relayClient.json"
)
var (
MaxCompression = len(compressionLevels) - 1
)
var compressionLevels []int = []int{
gzip.NoCompression,
gzip.HuffmanOnly,
gzip.BestSpeed,
gzip.DefaultCompression,
gzip.BestCompression,
}