Refactoring, added docstrings

This commit is contained in:
BarsTiger
2023-07-16 00:07:35 +03:00
parent e9477dfde7
commit 1662127c85
11 changed files with 135 additions and 64 deletions

View File

@@ -134,6 +134,12 @@ class Onion(object):
@staticmethod
def write_onion_service(name: str, port: int):
"""
Writes onion service to config
:param name: Name of service
:param port: Port of real service on local machine to proxy
:return: ServiceModel object
"""
if name in services.keys():
service: config.models.ServiceModel = services[name]
service.port = port