Allow nodes to disable the HTTPS storage protocol.

This commit is contained in:
Itamar Turner-Trauring
2022-08-12 11:13:09 -04:00
parent f671fb04a1
commit 09d778c2cf
4 changed files with 23 additions and 13 deletions

View File

@ -825,9 +825,10 @@ class _Client(node.Node, pollmixin.PollMixin):
furl_file = self.config.get_private_path("storage.furl").encode(get_filesystem_encoding())
furl = self.tub.registerReference(FoolscapStorageServer(ss), furlFile=furl_file)
(_, _, swissnum) = furl.rpartition("/")
nurls = self.tub.negotiationClass.add_storage_server(ss, swissnum.encode("ascii"))
self.storage_nurls.update(nurls)
announcement["anonymous-storage-NURLs"] = [n.to_text() for n in nurls]
if hasattr(self.tub.negotiationClass, "add_storage_server"):
nurls = self.tub.negotiationClass.add_storage_server(ss, swissnum.encode("ascii"))
self.storage_nurls.update(nurls)
announcement["anonymous-storage-NURLs"] = [n.to_text() for n in nurls]
announcement["anonymous-storage-FURL"] = furl
enabled_storage_servers = self._enable_storage_servers(