fixed schema and json tag, hide http://:0

This commit is contained in:
yusing
2024-10-20 11:04:44 +08:00
parent a278711421
commit c847fe4747
5 changed files with 16 additions and 10 deletions

View File

@@ -5,6 +5,7 @@ import (
"os"
"path"
"github.com/sirupsen/logrus"
"github.com/yusing/go-proxy/internal/common"
E "github.com/yusing/go-proxy/internal/error"
"github.com/yusing/go-proxy/internal/proxy/entry"
@@ -61,7 +62,9 @@ func (p *FileProvider) LoadRoutesImpl() (routes R.Routes, res E.Error) {
return
}
b.Add(Validate(data), true)
if err := Validate(data); err != nil {
logrus.Warn(err)
}
return R.FromEntries(entries)
}