mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Specify IP subnet literals in canonical form (#16953)
This is needed, because the netaddr package removed support for the implicit prefix form in version 1.0.0: https://github.com/netaddr/netaddr/pull/360
This commit is contained in:
parent
9635822cc1
commit
05489d89c6
1
changelog.d/16953.misc
Normal file
1
changelog.d/16953.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Specify IP subnets in canonical form.
|
@ -128,7 +128,7 @@ class AuthTestCase(unittest.HomeserverTestCase):
|
|||||||
token="foobar",
|
token="foobar",
|
||||||
url="a_url",
|
url="a_url",
|
||||||
sender=self.test_user,
|
sender=self.test_user,
|
||||||
ip_range_whitelist=IPSet(["192.168/16"]),
|
ip_range_whitelist=IPSet(["192.168.0.0/16"]),
|
||||||
)
|
)
|
||||||
self.store.get_app_service_by_token = Mock(return_value=app_service)
|
self.store.get_app_service_by_token = Mock(return_value=app_service)
|
||||||
self.store.get_user_by_access_token = AsyncMock(return_value=None)
|
self.store.get_user_by_access_token = AsyncMock(return_value=None)
|
||||||
@ -147,7 +147,7 @@ class AuthTestCase(unittest.HomeserverTestCase):
|
|||||||
token="foobar",
|
token="foobar",
|
||||||
url="a_url",
|
url="a_url",
|
||||||
sender=self.test_user,
|
sender=self.test_user,
|
||||||
ip_range_whitelist=IPSet(["192.168/16"]),
|
ip_range_whitelist=IPSet(["192.168.0.0/16"]),
|
||||||
)
|
)
|
||||||
self.store.get_app_service_by_token = Mock(return_value=app_service)
|
self.store.get_app_service_by_token = Mock(return_value=app_service)
|
||||||
self.store.get_user_by_access_token = AsyncMock(return_value=None)
|
self.store.get_user_by_access_token = AsyncMock(return_value=None)
|
||||||
|
Loading…
Reference in New Issue
Block a user