mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-21 17:15:38 +03: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
2 changed files with 3 additions and 2 deletions
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",
|
||||
url="a_url",
|
||||
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_user_by_access_token = AsyncMock(return_value=None)
|
||||
|
@ -147,7 +147,7 @@ class AuthTestCase(unittest.HomeserverTestCase):
|
|||
token="foobar",
|
||||
url="a_url",
|
||||
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_user_by_access_token = AsyncMock(return_value=None)
|
||||
|
|
Loading…
Reference in a new issue