mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-02-16 10:29:36 +01:00
fixed some spelling mistakes
This commit is contained in:
parent
90ec0a9cb6
commit
a33a4829e2
@ -455,7 +455,7 @@ Packet-level forwarding (eg. using the tun/tap devices on
|
|||||||
Linux) seems elegant at first, but it results in
|
Linux) seems elegant at first, but it results in
|
||||||
several problems, notably the 'tcp over tcp' problem. The
|
several problems, notably the 'tcp over tcp' problem. The
|
||||||
tcp protocol depends fundamentally on packets being dropped
|
tcp protocol depends fundamentally on packets being dropped
|
||||||
in order to implement its congestion control agorithm; if
|
in order to implement its congestion control algorithm; if
|
||||||
you pass tcp packets through a tcp-based tunnel (such as
|
you pass tcp packets through a tcp-based tunnel (such as
|
||||||
ssh), the inner tcp packets will never be dropped, and so
|
ssh), the inner tcp packets will never be dropped, and so
|
||||||
the inner tcp stream's congestion control will be
|
the inner tcp stream's congestion control will be
|
||||||
|
@ -81,7 +81,7 @@ def test_assert_features():
|
|||||||
|
|
||||||
def test_firewall_command():
|
def test_firewall_command():
|
||||||
method = get_method('nat')
|
method = get_method('nat')
|
||||||
assert not method.firewall_command("somthing")
|
assert not method.firewall_command("something")
|
||||||
|
|
||||||
|
|
||||||
@patch('sshuttle.methods.nat.ipt')
|
@patch('sshuttle.methods.nat.ipt')
|
||||||
|
@ -92,7 +92,7 @@ def test_assert_features():
|
|||||||
@patch('sshuttle.methods.pf.pf_get_dev')
|
@patch('sshuttle.methods.pf.pf_get_dev')
|
||||||
def test_firewall_command_darwin(mock_pf_get_dev, mock_ioctl, mock_stdout):
|
def test_firewall_command_darwin(mock_pf_get_dev, mock_ioctl, mock_stdout):
|
||||||
method = get_method('pf')
|
method = get_method('pf')
|
||||||
assert not method.firewall_command("somthing")
|
assert not method.firewall_command("something")
|
||||||
|
|
||||||
command = "QUERY_PF_NAT %d,%d,%s,%d,%s,%d\n" % (
|
command = "QUERY_PF_NAT %d,%d,%s,%d,%s,%d\n" % (
|
||||||
AF_INET, socket.IPPROTO_TCP,
|
AF_INET, socket.IPPROTO_TCP,
|
||||||
@ -115,7 +115,7 @@ def test_firewall_command_darwin(mock_pf_get_dev, mock_ioctl, mock_stdout):
|
|||||||
@patch('sshuttle.methods.pf.pf_get_dev')
|
@patch('sshuttle.methods.pf.pf_get_dev')
|
||||||
def test_firewall_command_freebsd(mock_pf_get_dev, mock_ioctl, mock_stdout):
|
def test_firewall_command_freebsd(mock_pf_get_dev, mock_ioctl, mock_stdout):
|
||||||
method = get_method('pf')
|
method = get_method('pf')
|
||||||
assert not method.firewall_command("somthing")
|
assert not method.firewall_command("something")
|
||||||
|
|
||||||
command = "QUERY_PF_NAT %d,%d,%s,%d,%s,%d\n" % (
|
command = "QUERY_PF_NAT %d,%d,%s,%d,%s,%d\n" % (
|
||||||
AF_INET, socket.IPPROTO_TCP,
|
AF_INET, socket.IPPROTO_TCP,
|
||||||
@ -138,7 +138,7 @@ def test_firewall_command_freebsd(mock_pf_get_dev, mock_ioctl, mock_stdout):
|
|||||||
@patch('sshuttle.methods.pf.pf_get_dev')
|
@patch('sshuttle.methods.pf.pf_get_dev')
|
||||||
def test_firewall_command_openbsd(mock_pf_get_dev, mock_ioctl, mock_stdout):
|
def test_firewall_command_openbsd(mock_pf_get_dev, mock_ioctl, mock_stdout):
|
||||||
method = get_method('pf')
|
method = get_method('pf')
|
||||||
assert not method.firewall_command("somthing")
|
assert not method.firewall_command("something")
|
||||||
|
|
||||||
command = "QUERY_PF_NAT %d,%d,%s,%d,%s,%d\n" % (
|
command = "QUERY_PF_NAT %d,%d,%s,%d,%s,%d\n" % (
|
||||||
AF_INET, socket.IPPROTO_TCP,
|
AF_INET, socket.IPPROTO_TCP,
|
||||||
|
@ -78,7 +78,7 @@ def test_assert_features():
|
|||||||
|
|
||||||
def test_firewall_command():
|
def test_firewall_command():
|
||||||
method = get_method('tproxy')
|
method = get_method('tproxy')
|
||||||
assert not method.firewall_command("somthing")
|
assert not method.firewall_command("something")
|
||||||
|
|
||||||
|
|
||||||
@patch('sshuttle.methods.tproxy.ipt')
|
@patch('sshuttle.methods.tproxy.ipt')
|
||||||
|
Loading…
Reference in New Issue
Block a user