Bugfix: Both should also include Both
This commit is contained in:
@@ -45,7 +45,7 @@ func (dir Direction) Contains(other Direction) bool {
|
|||||||
case Server:
|
case Server:
|
||||||
return other == Server || other == Both
|
return other == Server || other == Both
|
||||||
case Both:
|
case Both:
|
||||||
return other == Client || other == Server
|
return other == Client || other == Server || other == Both
|
||||||
default:
|
default:
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user