mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-28 20:01:50 +01:00
v0.5.0-rc4: fixing autocert issue, cache ACME registration, added ls-config option
This commit is contained in:
@@ -21,7 +21,7 @@ var NewRoutes = F.NewMap[string, Route]
|
||||
|
||||
func NewRoute(en *M.ProxyEntry) (Route, E.NestedError) {
|
||||
entry, err := P.NewEntry(en)
|
||||
if err.IsNotNil() {
|
||||
if err.HasError() {
|
||||
return nil, err
|
||||
}
|
||||
switch e := entry.(type) {
|
||||
|
||||
@@ -78,7 +78,7 @@ func (route *TCPRoute) CloseListeners() {
|
||||
route.listener.Close()
|
||||
route.listener = nil
|
||||
for _, pipe := range route.pipe {
|
||||
if err := pipe.Stop(); err.IsNotNil() {
|
||||
if err := pipe.Stop(); err.HasError() {
|
||||
route.l.Error(err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user