mirror of
https://github.com/yhl452493373/frpc-panel.git
synced 2026-04-04 14:27:01 +08:00
fix proxy to https issue
This commit is contained in:
@@ -66,6 +66,9 @@ func (c *HandleController) buildRequestUrl(serverApi string) string {
|
|||||||
|
|
||||||
host := c.CommonInfo.DashboardAddr
|
host := c.CommonInfo.DashboardAddr
|
||||||
port := c.CommonInfo.DashboardPort
|
port := c.CommonInfo.DashboardPort
|
||||||
|
|
||||||
|
host, _ = strings.CutPrefix(host, protocol)
|
||||||
|
|
||||||
requestUrl := protocol + host + ":" + strconv.Itoa(port) + serverApi
|
requestUrl := protocol + host + ":" + strconv.Itoa(port) + serverApi
|
||||||
|
|
||||||
return requestUrl
|
return requestUrl
|
||||||
|
|||||||
Reference in New Issue
Block a user