mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-05 16:56:54 +08:00
22 lines
984 B
Go
22 lines
984 B
Go
package engine
|
|
|
|
import "time"
|
|
|
|
type Key struct {
|
|
MTU int `yaml:"mtu"`
|
|
Mark int `yaml:"fwmark"`
|
|
Proxy string `yaml:"proxy"`
|
|
RestAPI string `yaml:"restapi"`
|
|
Device string `yaml:"device"`
|
|
LogLevel string `yaml:"loglevel"`
|
|
Interface string `yaml:"interface"`
|
|
TCPModerateReceiveBuffer bool `yaml:"tcp-moderate-receive-buffer"`
|
|
TCPSendBufferSize string `yaml:"tcp-send-buffer-size"`
|
|
TCPReceiveBufferSize string `yaml:"tcp-receive-buffer-size"`
|
|
TCPWaitTimeout time.Duration `yaml:"tcp-wait-timeout"`
|
|
UDPRelayBufferSize string `yaml:"udp-relay-buffer-size"`
|
|
UDPTimeout time.Duration `yaml:"udp-timeout"`
|
|
TUNPreUp string `yaml:"tun-pre-up"`
|
|
TUNPostUp string `yaml:"tun-post-up"`
|
|
}
|