mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +00:00
enhancement: proxy logging output fix
This commit is contained in:
parent
dcf680a373
commit
27d5da9527
@ -52,7 +52,10 @@ export const proxyService = mkSingleton(async (config: ProxyServiceConfig) => {
|
|||||||
res.end(`${req.headers.host || `Domain`} was rejected.`)
|
res.end(`${req.headers.host || `Domain`} was rejected.`)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
const { warn } = _proxyLogger.create(
|
||||||
|
`${req.method} ${req.headers.host}/${req.url}`
|
||||||
|
)
|
||||||
try {
|
try {
|
||||||
for (let i = 0; i < middleware.length; i++) {
|
for (let i = 0; i < middleware.length; i++) {
|
||||||
const m = middleware[i]!
|
const m = middleware[i]!
|
||||||
@ -67,6 +70,7 @@ export const proxyService = mkSingleton(async (config: ProxyServiceConfig) => {
|
|||||||
res.end(msg)
|
res.end(msg)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
info('daemon on port 3000')
|
info('daemon on port 3000')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user