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)
|
gsocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||||
gemsocket = ssl.wrap_socket(gsocket)
|
gemsocket = ssl.wrap_socket(gsocket)
|
||||||
gemsocket.connect((parse.hostname, 1965))
|
gemsocket.connect((parse.hostname, 1965))
|
||||||
wrappedSocket.send(i + "\r\n")
|
gemsocket.send(i + "\r\n")
|
||||||
received = ""
|
received = ""
|
||||||
while True:
|
while True:
|
||||||
gemresponse = wrappedSocket.recv(2048)
|
gemresponse = gemsocket.recv(2048)
|
||||||
if gemresponse:
|
if gemresponse:
|
||||||
received += gemresponse.decode()
|
received += gemresponse.decode()
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue