mirror of
https://github.com/openziti/zrok.git
synced 2025-08-09 00:04:43 +02:00
refactor public sharing backend to use frontend selection, rather than hard-wired frontend zids (#110)
This commit is contained in:
@ -102,6 +102,6 @@ func realRemoteAddress(req *http.Request) string {
|
||||
return ip
|
||||
}
|
||||
|
||||
func proxyUrl(svcToken string) string {
|
||||
return strings.Replace(cfg.Proxy.UrlTemplate, "{svcToken}", svcToken, -1)
|
||||
func proxyUrl(svcToken, template string) string {
|
||||
return strings.Replace(template, "{svcToken}", svcToken, -1)
|
||||
}
|
||||
|
Reference in New Issue
Block a user