Skip to content
Snippets Groups Projects
Commit 014ec5f3 authored by Symphorien Gibol's avatar Symphorien Gibol
Browse files

wrong method name

parent 2e2eb300
No related branches found
No related tags found
No related merge requests found
......@@ -29,9 +29,11 @@ sel.register(s, selectors.EVENT_READ, "sms")
while 1:
for key, events in sel.select():
if key.data=="tun":
print("tun")
s.sendto(tun.read(tun.mtu), (PEER, PORT))
elif key.data == "sms":
tun.write(s.read(tun.mtu))
print("sms")
tun.write(s.recv(tun.mtu))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment