support http load balancing

This commit is contained in:
fatedier committed 2019-07-31 00:41:58 +08:00
1 parent 5796c27ed5
commit b3ed863021
11 files changed
+329 -110

No files matched your search

+5
View File
@@ -31,6 +31,11 @@ type HttpsProxy struct {
func (pxy *HttpsProxy) Run() (remoteAddr string, err error) {
routeConfig := &vhost.VhostRouteConfig{}
defer func() {
if err != nil {
pxy.Close()
}
}()
addrs := make([]string, 0)
for _, domain := range pxy.cfg.CustomDomains {
if domain == "" {