mirror of
https://github.com/h44z/wg-portal.git
synced 2025-04-19 08:55:12 +00:00
20 lines
348 B
Go
20 lines
348 B
Go
package main
|
|
|
|
import (
|
|
"github.com/h44z/wg-portal/internal/server"
|
|
log "github.com/sirupsen/logrus"
|
|
)
|
|
|
|
func main() {
|
|
log.Infof("Starting WireGuard Portal Server...")
|
|
|
|
service := server.Server{}
|
|
if err := service.Setup(); err != nil {
|
|
log.Fatalf("Setup failed: %v", err)
|
|
}
|
|
|
|
service.Run()
|
|
|
|
log.Infof("Stopped WireGuard Portal Server...")
|
|
}
|