diff --git a/towercore/guard.py b/towercore/guard.py index 29630ab..21426fd 100755 --- a/towercore/guard.py +++ b/towercore/guard.py @@ -8,7 +8,6 @@ HEADER_SIZE = 16 FILTERED_SELECTOR_TAGS = { 0x21: frozenset((0x0B,)), 0x23: frozenset((0x0B,)), - 0x40: frozenset((0x09, 0x0B)), } BACKEND_HOST = os.environ.get("BACKEND_HOST", "towercore") BACKEND_PORT = int(os.environ.get("BACKEND_PORT", "7250")) diff --git a/towercore/test_guard.py b/towercore/test_guard.py index ccbe8c1..60f0977 100644 --- a/towercore/test_guard.py +++ b/towercore/test_guard.py @@ -36,14 +36,13 @@ class GuardTests(unittest.TestCase): ) self.assertEqual(module.sanitize_frame(request), frame(0x23, [])) - def test_strips_peer_selector_from_export_context(self) -> None: + def test_keeps_handover_prepare_selectors(self) -> None: module = importlib.import_module("guard") request = frame( 0x40, [(0x09, b"peer-id"), (0x0B, b"victim01"), (0x0C, b"\x01\0\0\0")], ) - expected = frame(0x40, [(0x0C, b"\x01\0\0\0")]) - self.assertEqual(module.sanitize_frame(request), expected) + self.assertEqual(module.sanitize_frame(request), request) def test_keeps_checker_read_by_message_ids(self) -> None: guard = importlib.util.find_spec("guard")