Skip to content

Commit

Permalink
docs: renaming in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Aug 27, 2021
1 parent a45bc25 commit c81882e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/netius/base/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def serve(

# ensures the proper default address value, taking into account
# the type of connection that is currently being used, this avoids
# problems with multiple stack based servers (ipv4 and ipv6)
# problems with multiple stack based servers (IPv4 and ipv6)
if host == None: host = "::1" if ipv6 else "127.0.0.1"

# defaults the provided SSL key and certificate paths to the
Expand Down Expand Up @@ -910,7 +910,7 @@ def on_socket_c(self, socket_c, address):
# to be to store pending callable operations in it
if self.ssl: socket_c.pending = None

# verifies if the socket is of type internet (either ipv4
# verifies if the socket is of type internet (either IPv4
# of ipv6), this is going to be used for conditional setting
# of some of the socket options
is_inet = socket_c.family in (socket.AF_INET, socket.AF_INET6)
Expand Down
2 changes: 1 addition & 1 deletion src/netius/common/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def random_integer(number_bits):
def host(default = "127.0.0.1"):
"""
Retrieves the host for the current machine,
typically this would be the ipv4 address of
typically this would be the IPv4 address of
the main network interface.
No result type are guaranteed and a local address
Expand Down

0 comments on commit c81882e

Please sign in to comment.