File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -687,7 +687,7 @@ def test_interface(host, family):
687
687
# exist
688
688
assert host .interface ("eth0" , family = family ).exists
689
689
assert not host .interface ("does_not_exist" , family = family ).exists
690
- # adresses
690
+ # addresses
691
691
addresses = host .interface .default (family ).addresses
692
692
assert len (addresses ) > 0
693
693
for add in addresses :
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class Interface(Module):
22
22
23
23
Optionally, the protocol family to use can be enforced.
24
24
25
- >>> host.interface("eth0", "inet6").adresses
25
+ >>> host.interface("eth0", "inet6").addresses
26
26
['fe80::e291:f5ff:fe98:6b8c']
27
27
"""
28
28
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ def is_listening(self):
96
96
97
97
>>> host.socket("unix:///var/run/docker.sock").is_listening
98
98
False
99
- >>> # This HTTP server listen on all ipv4 adresses but not on ipv6
99
+ >>> # This HTTP server listen on all ipv4 addresses but not on ipv6
100
100
>>> host.socket("tcp://0.0.0.0:80").is_listening
101
101
True
102
102
>>> host.socket("tcp://:::80").is_listening
@@ -127,7 +127,7 @@ def is_listening(self):
127
127
def clients (self ) -> List [Optional [Tuple [str , int ]]]:
128
128
"""Return a list of clients connected to a listening socket
129
129
130
- For tcp and udp sockets a list of pair (adress , port) is returned.
130
+ For tcp and udp sockets a list of pair (address , port) is returned.
131
131
For unix sockets a list of None is returned (thus you can make a
132
132
len() for counting clients).
133
133
@@ -254,7 +254,7 @@ def _iter_sockets(self, listening):
254
254
elif protocol in ("tcp" , "udp" ):
255
255
host , port = local .rsplit (":" , 1 )
256
256
port = int (port )
257
- # new versions of ss output ipv6 adresses enclosed in []
257
+ # new versions of ss output ipv6 addresses enclosed in []
258
258
if host and host [0 ] == "[" and host [- 1 ] == "]" :
259
259
host = host [1 :- 1 ]
260
260
else :
You can’t perform that action at this time.
0 commit comments