- If a default IPv6 route is found, query the ip:port defined by `IPV6_CHECK_ADDRESS` to check for internet access
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)
|
|
}
|