forked-synapse/synapse/federation
Sean Quah e46d5f3586
Factor out an is_mine_server_name method (#15542)
Add an `is_mine_server_name` method, similar to `is_mine_id`.

Ideally we would use this consistently, instead of sometimes comparing
against `hs.hostname` and other times reaching into
`hs.config.server.server_name`.

Also fix a bug in the tests where `hs.hostname` would sometimes differ
from `hs.config.server.server_name`.

Signed-off-by: Sean Quah <seanq@matrix.org>
2023-05-05 15:06:22 +01:00
..
sender Factor out an is_mine_server_name method (#15542) 2023-05-05 15:06:22 +01:00
transport Factor out an is_mine_server_name method (#15542) 2023-05-05 15:06:22 +01:00
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
federation_base.py Factor out an is_mine_server_name method (#15542) 2023-05-05 15:06:22 +01:00
federation_client.py Factor out an is_mine_server_name method (#15542) 2023-05-05 15:06:22 +01:00
federation_server.py Factor out an is_mine_server_name method (#15542) 2023-05-05 15:06:22 +01:00
persistence.py Remove log_function and its uses (#11761) 2022-01-18 13:06:04 +00:00
send_queue.py Factor out an is_mine_server_name method (#15542) 2023-05-05 15:06:22 +01:00
units.py Convert Transaction and Edu object to attrs (#10542) 2021-08-06 09:39:59 -04:00