mirror of
https://github.com/fatedier/frp.git
synced 2025-07-27 07:35:07 +00:00
improve e2e port allocator (#3882)
This commit is contained in:
@@ -79,6 +79,7 @@ func (pa *Allocator) GetByName(portName string) int {
|
||||
udpConn.Close()
|
||||
|
||||
pa.used.Insert(port)
|
||||
pa.reserved.Delete(port)
|
||||
return port
|
||||
}
|
||||
return 0
|
||||
|
Reference in New Issue
Block a user