Fix tests and linter warnings

This commit is contained in:
Daniel 2022-02-01 13:12:46 +01:00
parent 7d2cd6c15d
commit f59ad0357a
162 changed files with 668 additions and 696 deletions

View file

@ -10,18 +10,17 @@ import (
"sync"
"time"
"github.com/safing/portbase/utils"
"github.com/gorilla/mux"
"github.com/safing/portbase/log"
"github.com/safing/portbase/utils"
)
var (
// gorilla mux
// mainMux is the main mux router.
mainMux = mux.NewRouter()
// main server and lock
// server is the main server.
server = &http.Server{}
handlerLock sync.RWMutex