mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-15 09:58:42 -07:00
b3a68bb806
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
22 lines
431 B
Go
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)
|
|
}
|