mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-07 04:20:12 +02:00
22 lines
743 B
Go
22 lines
743 B
Go
package firewall
|
|
|
|
import (
|
|
"context"
|
|
"net/netip"
|
|
)
|
|
|
|
func (c *Config) Version(ctx context.Context) (version string, err error) {
|
|
return c.impl.Version(ctx)
|
|
}
|
|
|
|
// TempDropOutputTCPRST temporarily drops outgoing TCP RST packets to the specified address and port,
|
|
// for any TCP packets not marked with the excludeMark given.
|
|
// This is necessary for TCP path MTU discovery to work, as the kernel will try to terminate the connection
|
|
// by sending a TCP RST packet, although we want to handle the connection manually.
|
|
func (c *Config) TempDropOutputTCPRST(ctx context.Context,
|
|
src, dst netip.AddrPort, excludeMark int) (
|
|
revert func(ctx context.Context) error, err error,
|
|
) {
|
|
return c.impl.TempDropOutputTCPRST(ctx, src, dst, excludeMark)
|
|
}
|