AdGuardHome/main.go
Andrey Meshkov b3a68bb806 * (global): added --no-mem-optimization flag
This commit adds a new command-line argument that disables memory
optimizations AGH is using. These memory optimizations might be
necessary on low-memory devices, but they aren't free and there's a
performance hit (see #2044). Now they can be disabled - just pass
--no-mem-optimization when you run AGH or when you install the service
-- ./AdGuardHome -s install --no-mem-optimization

Closes: #2044
2020-09-11 13:19:37 +03:00

22 lines
431 B
Go

//go:generate go install -v github.com/gobuffalo/packr/packr
//go:generate packr clean
//go:generate packr -z
package main
import (
"github.com/AdguardTeam/AdGuardHome/home"
)
// version will be set through ldflags, contains current version
var version = "undefined"
// channel can be set via ldflags
var channel = "release"
// GOARM value - set via ldflags
var goarm = ""
func main() {
home.Main(version, channel, goarm)
}