mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-06 20:10:11 +02:00
11883aa830
- add option `IPV6_CHECK_ADDRESSESES=[2001:4860:4860::8888]:53,[2606:4700:4700::1111]:53` - gluetun needs access to the addresses above through the host firewall, to test ipv6 support before setting up the vpn
20 lines
340 B
Go
20 lines
340 B
Go
package netlink
|
|
|
|
import (
|
|
"context"
|
|
"net/netip"
|
|
|
|
"github.com/qdm12/log"
|
|
)
|
|
|
|
type DebugLogger interface {
|
|
Debug(message string)
|
|
Debugf(format string, args ...any)
|
|
Patch(options ...log.Option)
|
|
}
|
|
|
|
type Firewall interface {
|
|
AcceptOutput(ctx context.Context, protocol, intf string, ip netip.Addr,
|
|
port uint16, remove bool) (err error)
|
|
}
|