mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-02-27 01:07:10 +00:00
feat: support REJECT-DROP
This commit is contained in:
@@ -18,6 +18,7 @@ import (
|
||||
const (
|
||||
Direct AdapterType = iota
|
||||
Reject
|
||||
RejectDrop
|
||||
Compatible
|
||||
Pass
|
||||
|
||||
@@ -43,6 +44,7 @@ const (
|
||||
|
||||
const (
|
||||
DefaultTCPTimeout = 5 * time.Second
|
||||
DefaultDropTime = 12 * DefaultTCPTimeout
|
||||
DefaultUDPTimeout = DefaultTCPTimeout
|
||||
DefaultTLSTimeout = DefaultTCPTimeout
|
||||
DefaultMaxHealthCheckUrlNum = 16
|
||||
@@ -179,6 +181,8 @@ func (at AdapterType) String() string {
|
||||
return "Direct"
|
||||
case Reject:
|
||||
return "Reject"
|
||||
case RejectDrop:
|
||||
return "RejectDrop"
|
||||
case Compatible:
|
||||
return "Compatible"
|
||||
case Pass:
|
||||
|
||||
Reference in New Issue
Block a user