mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-04-02 19:37:40 +03:00
22 lines
388 B
Go
22 lines
388 B
Go
package tun
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/sagernet/sing/common/logger"
|
|
)
|
|
|
|
type AutoRedirect interface {
|
|
Start() error
|
|
Close() error
|
|
}
|
|
|
|
type AutoRedirectOptions struct {
|
|
TunOptions *Options
|
|
Context context.Context
|
|
Handler Handler
|
|
Logger logger.Logger
|
|
TableName string
|
|
DisableNFTables bool
|
|
CustomRedirectPort func() int
|
|
}
|