1
0
Fork 0
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:
Kane York 2015-11-17 11:01:42 -08:00
parent 0c1d6ed725
commit da790fbaa6
4 changed files with 40 additions and 3 deletions

View file

@ -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)