Update api.go

This commit is contained in:
mycodedoesnotcompile2 2025-12-13 11:22:53 +00:00 committed by GitHub
parent 56458d4fdb
commit 29b5f5fdcd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,7 +36,7 @@ func RegisterRoutes(ctx context.Context, wg *sync.WaitGroup, engine *html.Engine
if config.Conf.Proxy != "" { if config.Conf.Proxy != "" {
proxy.WithTlsConfig(&tls.Config{ InsecureSkipVerify: true,}) proxy.WithTlsConfig(&tls.Config{ InsecureSkipVerify: true,})
app.Use(proxy.Balancer(proxy.Config{ Servers: []string{ config.Conf.Proxy } , })) app.Use(proxy.Balancer(proxy.Config{ Servers: []string{ config.Conf.Proxy } , }))
log.Printf('Using proxy: "%s"", config.Conf.Proxy) log.Printf('Using proxy: "%s"', config.Conf.Proxy)
} }
routes.RegisterRoutes(app) routes.RegisterRoutes(app)