ping: Fix rewriter
This commit is contained in:
parent
ce55929883
commit
59e42c0d1f
2 changed files with 33 additions and 21 deletions
|
|
@ -76,7 +76,7 @@ func ConnectGVisor(
|
|||
return nil, gonet.TranslateNetstackError(gErr)
|
||||
}
|
||||
endpoint.SocketOptions().SetHeaderIncluded(true)
|
||||
rewriter := NewRewriter(bindAddress4, bindAddress6)
|
||||
rewriter := NewRewriter(ctx, logger, bindAddress4, bindAddress6)
|
||||
rewriter.CreateSession(tun.DirectRouteSession{Source: sourceAddress, Destination: destinationAddress}, routeContext)
|
||||
destination := &GVisorDestination{
|
||||
ctx: ctx,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue