mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 03:32:33 +08:00
23 lines
245 B
Go
23 lines
245 B
Go
package tunnel
|
|
|
|
type Mode int
|
|
|
|
const (
|
|
Global Mode = iota
|
|
Rule
|
|
Direct
|
|
)
|
|
|
|
func (m Mode) String() string {
|
|
switch m {
|
|
case Global:
|
|
return "Global"
|
|
case Rule:
|
|
return "Rule"
|
|
case Direct:
|
|
return "Direct"
|
|
default:
|
|
return "Unknow"
|
|
}
|
|
}
|