Merge 3507c17084642ffc3dabc04acc03b7c32b1a6f73 into 2dcdb24cc4a0792a5e75527d43ccb8fd2e40da92

This commit is contained in:
bobo liu 2024-08-07 15:47:04 +08:00 committed by GitHub
commit b799e9e6e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -254,8 +254,8 @@ func (pw *Wrapper) statusFailedCallback() {
func (pw *Wrapper) InWorkConn(workConn net.Conn, m *msg.StartWorkConn) {
xl := pw.xl
pw.mu.RLock()
defer pw.mu.RUnlock()
pxy := pw.pxy
pw.mu.RUnlock()
if pxy != nil && pw.Phase == ProxyPhaseRunning {
xl.Debugf("start a new work connection, localAddr: %s remoteAddr: %s", workConn.LocalAddr().String(), workConn.RemoteAddr().String())
go pxy.InWorkConn(workConn, m)