refactor(config): add SupportProxyProtocol to Entrypoint config

This commit is contained in:
yusing
2025-09-18 17:36:19 +08:00
parent 83a69322fa
commit 09b14a47e9
2 changed files with 10 additions and 8 deletions

View File

@@ -204,12 +204,13 @@ func (cfg *Config) StartServers(opts ...*StartServersOptions) {
opt := opts[0]
if opt.Proxy {
server.StartServer(cfg.task, server.Options{
Name: "proxy",
CertProvider: cfg.AutoCertProvider(),
HTTPAddr: common.ProxyHTTPAddr,
HTTPSAddr: common.ProxyHTTPSAddr,
Handler: cfg.entrypoint,
ACL: cfg.value.ACL,
Name: "proxy",
CertProvider: cfg.AutoCertProvider(),
HTTPAddr: common.ProxyHTTPAddr,
HTTPSAddr: common.ProxyHTTPSAddr,
Handler: cfg.entrypoint,
ACL: cfg.value.ACL,
SupportProxyProtocol: cfg.value.Entrypoint.SupportProxyProtocol,
})
}
if opt.API {