feat: support https proxy

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
This commit is contained in:
Jianhui Zhao
2022-05-09 17:48:35 +08:00
parent 8bfd8459e9
commit 06695ba338
3 changed files with 36 additions and 5 deletions
+1 -1
View File
@@ -290,7 +290,7 @@ func apiStart(br *broker) {
handleCmdReq(br, c)
})
r.Any("/web/:devid/:addr/*path", func(c *gin.Context) {
r.Any("/web/:devid/:proto/:addr/*path", func(c *gin.Context) {
httpProxyRedirect(br, c)
})