mirror of
https://github.com/fatedier/frp.git
synced 2026-04-14 04:59:11 +08:00
Compare commits
2 Commits
copilot/re
...
f22f7d539c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f22f7d539c | ||
|
|
462c987f6d |
@@ -100,8 +100,9 @@ func (tg *TCPGroup) Listen(proxyName string, group string, groupKey string, addr
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
tcpLn, errRet := net.Listen("tcp", net.JoinHostPort(addr, strconv.Itoa(port)))
|
||||
tcpLn, errRet := net.Listen("tcp", net.JoinHostPort(addr, strconv.Itoa(realPort)))
|
||||
if errRet != nil {
|
||||
tg.ctl.portManager.Release(realPort)
|
||||
err = errRet
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user