diff --git a/build_web_release.bat b/build_web_release.bat index 4e50f1c..edfc435 100644 --- a/build_web_release.bat +++ b/build_web_release.bat @@ -5,7 +5,7 @@ mkdir build_web_release call run_codegen.bat || goto :error -set FLAGS=-O2 -DNDEBUG +set FLAGS=-O0 -DNDEBUG set OUTPUT_FOLDER=build_web_release call build_web_common.bat || goto :error diff --git a/server/main.go b/server/main.go index 972c496..6fb036a 100644 --- a/server/main.go +++ b/server/main.go @@ -32,6 +32,7 @@ const ( const ( // A-Z and 0-9, four digits means this many codes MaxCodes = 36 * 36 * 36 * 36 + MaxTime = 10*60 *1000 // in seconds ) @@ -283,7 +284,7 @@ func completion(w http.ResponseWriter, req *http.Request) { ipAddyTenFree[userKey] = currentTime() rejected = false } else { - if currentTime() - createdTime < 10*60 { + if currentTime() - createdTime < MaxTime { rejected = false } else { rejected = true // out of free time buddy