mirror of
https://github.com/h44z/wg-portal.git
synced 2025-09-13 14:31:15 +00:00
initial commit
This commit is contained in:
19
cmd/wg-portal/main.go
Normal file
19
cmd/wg-portal/main.go
Normal file
@@ -0,0 +1,19 @@
|
||||
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...")
|
||||
}
|
Reference in New Issue
Block a user