mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-06-18 00:54:32 +03:00
Add tor outbound
This commit is contained in:
@@ -267,7 +267,11 @@ func (r *DefaultRule) Outbound() string {
|
||||
}
|
||||
|
||||
func (r *DefaultRule) String() string {
|
||||
return strings.Join(F.MapToString(r.allItems), " ")
|
||||
if !r.invert {
|
||||
return strings.Join(F.MapToString(r.allItems), " ")
|
||||
} else {
|
||||
return "!(" + strings.Join(F.MapToString(r.allItems), " ") + ")"
|
||||
}
|
||||
}
|
||||
|
||||
var _ adapter.Rule = (*LogicalRule)(nil)
|
||||
|
||||
Reference in New Issue
Block a user