mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-31 10:20:55 +00:00
Refuse connections if not enough RAM
This commit is contained in:
parent
0c1d6ed725
commit
da790fbaa6
4 changed files with 40 additions and 3 deletions
|
@ -307,9 +307,10 @@ func httpError(statusCode int) error {
|
|||
func GenerateKeys(outputFile, serverID, theirPublicStr string) {
|
||||
var err error
|
||||
output := ConfigFile{
|
||||
ListenAddr: "0.0.0.0:8001",
|
||||
SocketOrigin: "localhost:8001",
|
||||
BackendURL: "http://localhost:8002/ffz",
|
||||
ListenAddr: "0.0.0.0:8001",
|
||||
SocketOrigin: "localhost:8001",
|
||||
BackendURL: "http://localhost:8002/ffz",
|
||||
MinMemoryBytes: 1024 * 1024 * 24,
|
||||
}
|
||||
|
||||
output.ServerID, err = strconv.Atoi(serverID)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue