fixed json output for ls-routes and its API and homepage api

This commit is contained in:
yusing
2024-10-15 16:23:46 +08:00
parent f4d532598c
commit 56b778f19c
5 changed files with 23 additions and 12 deletions

View File

@@ -54,7 +54,7 @@ func (rp *ReverseProxyEntry) UseIdleWatcher() bool {
}
func (rp *ReverseProxyEntry) UseLoadBalance() bool {
return rp.LoadBalance.Link != ""
return rp.LoadBalance != nil && rp.LoadBalance.Link != ""
}
func (rp *ReverseProxyEntry) IsDocker() bool {