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