mirror of
https://github.com/safing/portmaster
synced 2025-04-23 04:19:10 +00:00
32 lines
677 B
Go
32 lines
677 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/safing/portbase/info"
|
|
"github.com/safing/portbase/metrics"
|
|
"github.com/safing/portbase/run"
|
|
"github.com/safing/spn/conf"
|
|
|
|
// include packages here
|
|
_ "github.com/safing/portbase/modules/subsystems"
|
|
_ "github.com/safing/portmaster/core"
|
|
_ "github.com/safing/portmaster/firewall"
|
|
_ "github.com/safing/portmaster/nameserver"
|
|
_ "github.com/safing/portmaster/ui"
|
|
_ "github.com/safing/spn/captain"
|
|
)
|
|
|
|
func main() {
|
|
// set information
|
|
info.Set("Portmaster", "0.7.10", "AGPLv3", true)
|
|
|
|
// Configure metrics.
|
|
metrics.SetNamespace("portmaster")
|
|
|
|
// enable SPN client mode
|
|
conf.EnableClient(true)
|
|
|
|
// start
|
|
os.Exit(run.Run())
|
|
}
|