improve http handler

This commit is contained in:
ginuerzh
2021-10-31 12:41:53 +08:00
parent 248f7e4318
commit 64736585ee
11 changed files with 435 additions and 127 deletions
+3
View File
@@ -1,6 +1,8 @@
package main
import (
stdlog "log"
"github.com/go-gost/gost/pkg/config"
"github.com/go-gost/gost/pkg/logger"
)
@@ -10,6 +12,7 @@ var (
)
func main() {
stdlog.SetFlags(stdlog.LstdFlags | stdlog.Lshortfile)
cfg := &config.Config{}
if err := cfg.Load(); err != nil {
log.Fatal(err)