mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-19 20:32:35 +02:00
fix: missing route handler iniitialization
This commit is contained in:
parent
edada22ac0
commit
e8d1d524b9
1 changed files with 4 additions and 0 deletions
|
@ -109,6 +109,10 @@ func (r *ReveseProxyRoute) Start(parent task.Parent) gperr.Error {
|
|||
r.HealthMon = monitor.NewMonitor(r)
|
||||
}
|
||||
|
||||
if r.handler == nil {
|
||||
r.handler = r.rp
|
||||
}
|
||||
|
||||
if r.UseAccessLog() {
|
||||
var err error
|
||||
r.rp.AccessLogger, err = accesslog.NewAccessLogger(r.task, r.AccessLog)
|
||||
|
|
Loading…
Add table
Reference in a new issue