This commit is contained in:
parent
e03ad71e72
commit
aa649efb68
1 changed files with 2 additions and 2 deletions
|
@ -855,10 +855,10 @@ while True:
|
|||
gsocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
gemsocket = ssl.wrap_socket(gsocket)
|
||||
gemsocket.connect((parse.hostname, 1965))
|
||||
wrappedSocket.send(i + "\r\n")
|
||||
gemsocket.send(i + "\r\n")
|
||||
received = ""
|
||||
while True:
|
||||
gemresponse = wrappedSocket.recv(2048)
|
||||
gemresponse = gemsocket.recv(2048)
|
||||
if gemresponse:
|
||||
received += gemresponse.decode()
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue