Fix gvisor icmp destination
This commit is contained in:
parent
8dbb51cfb7
commit
f46791bc0d
6 changed files with 24 additions and 27 deletions
|
|
@ -6,8 +6,14 @@ import (
|
|||
|
||||
"github.com/sagernet/sing-tun/internal/gtcpip/checksum"
|
||||
"github.com/sagernet/sing-tun/internal/gtcpip/header"
|
||||
"github.com/sagernet/sing/common/buf"
|
||||
)
|
||||
|
||||
type DirectRouteDestination interface {
|
||||
WritePacket(packet *buf.Buffer) error
|
||||
Close() error
|
||||
}
|
||||
|
||||
type NatMapping struct {
|
||||
access sync.RWMutex
|
||||
sessions map[DirectRouteSession]DirectRouteContext
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue