Skip to content

Commit

Permalink
spelling fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
moloch-- committed Aug 9, 2022
1 parent 412446f commit fa463a8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/sliver/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ def __init__(
):
"""
This class parses and represents Sliver operator configuration files, typically this class is automatically
instanciated using one of the class methods :class:`SliverClientConfig.parse_config()` or :class:`SliverClientConfig.parse_config_file()` but can be directly
instanciated too.
instantiated using one of the class methods :class:`SliverClientConfig.parse_config()` or :class:`SliverClientConfig.parse_config_file()` but can be directly
instantiated too.
:param operater: Operator name, note that this value is only used by the client and is ignored by the server.
:param operator: Operator name, note that this value is only used by the client and is ignored by the server.
:param lhost: The listener host to connect to (i.e., the Sliver server host).
:param lhost: The TCP port of the host listener (i.e., the TCP port of the Sliver "multiplayer" service).
:param ca_certificate: The Sliver server certificate authority.
Expand Down Expand Up @@ -76,11 +76,11 @@ def __repr__(self):
@classmethod
def parse_config(cls: Type[T], data: Union[str, bytes]) -> T:
"""Parses the content of a Sliver operator configuration file and
returns the instanciated :class:`SliverClientConfig`
returns the instantiated :class:`SliverClientConfig`
:param data: The Sliver operator configuration file content.
:type data: Union[str, bytes]
:return: An instanciated :class:`SliverClientConfig` object.
:return: An instantiated :class:`SliverClientConfig` object.
:rtype: T
"""
return cls(**json.loads(data))
Expand All @@ -91,7 +91,7 @@ def parse_config_file(cls: Type[T], filepath: str) -> T:
:param filepath: File system path to an operator configuration file.
:type filepath: str
:return: An instanciated :class:`SliverClientConfig` object.
:return: An instantiated :class:`SliverClientConfig` object.
:rtype: T
"""
with open(filepath, "r") as fp:
Expand Down

0 comments on commit fa463a8

Please sign in to comment.