Fix lint errors
This commit is contained in:
parent
994d6ccdbf
commit
d1af8aaf7e
6 changed files with 15 additions and 21 deletions
|
|
@ -9,7 +9,6 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/sagernet/sing-tun/gtcpip/header"
|
||||
"github.com/sagernet/sing/common"
|
||||
"github.com/sagernet/sing/common/buf"
|
||||
"github.com/sagernet/sing/common/control"
|
||||
M "github.com/sagernet/sing/common/metadata"
|
||||
|
|
@ -175,7 +174,7 @@ func (c *UnprivilegedConn) Close() error {
|
|||
for _, conn := range c.mapping {
|
||||
_ = conn.Close()
|
||||
}
|
||||
common.ClearMap(c.mapping)
|
||||
clear(c.mapping)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue