Skip to content

Commit

Permalink
make reload router exact-match-only
Browse files Browse the repository at this point in the history
  • Loading branch information
jranson committed Aug 12, 2024
1 parent 1a6215e commit a99c568
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/httpserver/listeners.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ func applyListenerConfigs(conf, oldConf *config.Config,
lg.UpdateRouter("metricsListener", metricsRouter)
}

rr := lm.NewRouter() // serveMux router for the Reload port
rr := lm.NewRouter() // router for the Reload port
rr.SetMatchingScheme(0) // reload router is exact-match only

// if the Reload HTTP port is configured, then set up the http listener instance
if conf.ReloadConfig != nil && conf.ReloadConfig.ListenPort > 0 &&
Expand Down

0 comments on commit a99c568

Please sign in to comment.