Skip to content

Commit

Permalink
ipv6, ipv4 for client
Browse files Browse the repository at this point in the history
  • Loading branch information
macos committed Jun 17, 2020
1 parent d94e6ca commit ddea313
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions clients/client-linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,7 @@ def byte_str(object):
while True:
try:
print("Connecting...")
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((SERVER, PORT))
s = socket.create_connection((SERVER, PORT))
data = byte_str(s.recv(1024))
if data.find("Authentication required") > -1:
s.send(byte_str(USER + ':' + PASSWORD + '\n'))
Expand Down
3 changes: 1 addition & 2 deletions clients/client-psutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,7 @@ def byte_str(object):
while 1:
try:
print("Connecting...")
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((SERVER, PORT))
s = socket.create_connection((SERVER, PORT))
data = byte_str(s.recv(1024))
if data.find("Authentication required") > -1:
s.send(byte_str(USER + ':' + PASSWORD + '\n'))
Expand Down

0 comments on commit ddea313

Please sign in to comment.