mirror of
https://github.com/MetaCubeX/Clash.Meta.git
synced 2025-04-20 01:00:56 +00:00
fix close of nil channel
This commit is contained in:
parent
eed574195b
commit
c7bb638ecb
1 changed files with 1 additions and 0 deletions
|
@ -50,6 +50,7 @@ func NewUDPHopPacketConn(addr *UDPHopAddr, hopInterval time.Duration) (net.Packe
|
|||
HopInterval: hopInterval,
|
||||
conn: conn,
|
||||
addrIndex: index,
|
||||
closeChan: make(chan struct{}),
|
||||
}
|
||||
go hConn.hopLoop()
|
||||
return hConn, nil
|
||||
|
|
Loading…
Add table
Reference in a new issue