Make the client respect the force_foolscap flag, and default to Foolscap-only

for now.
This commit is contained in:
Itamar Turner-Trauring 2023-03-08 14:03:32 -05:00
parent 6c0c9470cf
commit 9663db522c
2 changed files with 3 additions and 1 deletions

0
newsfragments/3936.minor Normal file
View File

View File

@ -299,7 +299,9 @@ class StorageFarmBroker(service.MultiService):
"pub-{}".format(str(server_id, "ascii")), # server_id is v0-<key> not pub-v0-key .. for reasons?
)
if len(server["ann"].get(ANONYMOUS_STORAGE_NURLS, [])) > 0:
if not self.node_config.get_config(
"storage", "force_foolscap", default=True, boolean=True,
) and len(server["ann"].get(ANONYMOUS_STORAGE_NURLS, [])) > 0:
s = HTTPNativeStorageServer(
server_id,
server["ann"],