实现源站端口跟随功能

This commit is contained in:
刘祥超
2022-06-29 21:58:41 +08:00
parent fb6fee8c60
commit 92f541b0aa
10 changed files with 96 additions and 41 deletions

View File

@@ -99,7 +99,7 @@ func (this *OriginStateManager) Loop() error {
for _, state := range currentStates {
go func(state *OriginState) {
defer wg.Done()
conn, err := OriginConnect(state.Config, "", state.TLSHost)
conn, _, err := OriginConnect(state.Config, 0, "", state.TLSHost)
if err == nil {
_ = conn.Close()