From ef244a54907e46da376eefe31335f1f5d9b38c63 Mon Sep 17 00:00:00 2001 From: a1346054 <36859588+a1346054@users.noreply.github.com> Date: Wed, 22 Sep 2021 12:07:24 +0000 Subject: [PATCH] Fix typos --- CHANGES.rst | 2 +- docs/installation.rst | 2 +- docs/usage.rst | 2 +- sshuttle/client.py | 2 +- sshuttle/firewall.py | 2 +- sshuttle/ssh.py | 6 +++--- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index a60a744..2bd289b 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -133,7 +133,7 @@ Fixed Added ~~~~~ -* doas support as replacmeent for sudo on OpenBSD. +* doas support as replacement for sudo on OpenBSD. * Added ChromeOS section to documentation (#262) * Add --no-sudo-pythonpath option diff --git a/docs/installation.rst b/docs/installation.rst index e75ff51..4dc18f3 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -5,7 +5,7 @@ Installation pip install sshuttle -- Debain package manager:: +- Debian package manager:: sudo apt install sshuttle diff --git a/docs/usage.rst b/docs/usage.rst index 3fd63a1..f7a2b85 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -99,7 +99,7 @@ access to sshuttle. The default is `sshuttle_auto`:: sshuttle --sudoer --sudoers-filename sshuttle_auto_tommy You can also see what configuration will be added to your system without -modifying anything. This can be helpfull is the auto feature does not work, or +modifying anything. This can be helpful if the auto feature does not work, or you want more control. This option also works with `--sudoers-username`. `--sudoers-filename` has no effect with this option:: diff --git a/sshuttle/client.py b/sshuttle/client.py index 23fde6b..6fe9e53 100644 --- a/sshuttle/client.py +++ b/sshuttle/client.py @@ -164,7 +164,7 @@ class MultiListener: try: self.v4.listen(backlog) except socket.error as e: - # on some systems v4 bind will fail if the v6 suceeded, + # on some systems v4 bind will fail if the v6 succeeded, # in this case the v6 socket will receive v4 too. if e.errno == errno.EADDRINUSE and self.v6: self.v4 = None diff --git a/sshuttle/firewall.py b/sshuttle/firewall.py index 24b85e8..d3806cd 100644 --- a/sshuttle/firewall.py +++ b/sshuttle/firewall.py @@ -126,7 +126,7 @@ def flush_systemd_dns_cache(): # # This code is supposed to clean up after itself by deleting its rules on # exit. In case that fails, it's not the end of the world; future runs will -# supercede it in the transproxy list, at least, so the leftover rules +# supersede it in the transproxy list, at least, so the leftover rules # are hopefully harmless. def main(method_name, syslog): helpers.logprefix = 'fw: ' diff --git a/sshuttle/ssh.py b/sshuttle/ssh.py index 5c3fc96..7ced918 100644 --- a/sshuttle/ssh.py +++ b/sshuttle/ssh.py @@ -61,11 +61,11 @@ def parse_hostport(rhostport): if ":" in host: # IPv6 address and/or got a port specified - # If it is an IPv6 adress with port specification, + # If it is an IPv6 address with port specification, # then it will look like: [::1]:22 try: - # try to parse host as an IP adress, + # try to parse host as an IP address, # if that works it is an IPv6 address host = str(ipaddress.ip_address(host)) except ValueError: @@ -150,7 +150,7 @@ def connect(ssh_cmd, rhostport, python, stderr, options): # return error code 127. # # (2) python3 or python exists in the PATH and is - # executable. If they aren't, then exec wont work (see (4) + # executable. If they aren't, then exec won't work (see (4) # below). # # (3) In /bin/sh, that we can redirect stderr in order to