2019-06-10 08:33:19 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2019-07-24 14:00:05 +00:00
|
|
|
"runtime/debug"
|
|
|
|
|
2019-06-10 08:33:19 +00:00
|
|
|
"github.com/AdguardTeam/AdGuardHome/home"
|
|
|
|
)
|
|
|
|
|
2019-06-20 11:36:26 +00:00
|
|
|
// version will be set through ldflags, contains current version
|
|
|
|
var version = "undefined"
|
|
|
|
|
|
|
|
// channel can be set via ldflags
|
|
|
|
var channel = "release"
|
|
|
|
|
2020-02-06 17:55:37 +00:00
|
|
|
// GOARM value - set via ldflags
|
2020-01-15 15:58:12 +00:00
|
|
|
var goarm = ""
|
|
|
|
|
2019-06-10 08:33:19 +00:00
|
|
|
func main() {
|
2019-07-24 14:00:05 +00:00
|
|
|
debug.SetGCPercent(10)
|
2020-01-15 15:58:12 +00:00
|
|
|
home.Main(version, channel, goarm)
|
2019-06-10 08:33:19 +00:00
|
|
|
}
|