🐛 Fix GetHubUrl method

This commit is contained in:
M. Mert Yildiran 2023-11-01 20:35:19 +03:00
parent d82df9d670
commit 19723debb2
No known key found for this signature in database
GPG Key ID: DA5D6DCBB758A461

View File

@ -73,7 +73,7 @@ func GetProxyOnPort(port uint16) string {
} }
func GetHubUrl() string { func GetHubUrl() string {
return fmt.Sprintf("%s/api", GetProxyOnPort(config.Config.Tap.Proxy.Hub.Port)) return fmt.Sprintf("%s/api", GetProxyOnPort(config.Config.Tap.Proxy.Front.Port))
} }
func getRerouteHttpHandlerSelfAPI(proxyHandler http.Handler, selfNamespace string, selfServiceName string) http.Handler { func getRerouteHttpHandlerSelfAPI(proxyHandler http.Handler, selfNamespace string, selfServiceName string) http.Handler {