changeset 1056:3437107cbeba draft

vain
author d3v11 <d3v11@d3v11.ano>
date Sun, 04 Nov 2012 15:22:06 +0000
parents cb2b3cbe3368
children c6bf58b459dd
files contrib/quicktun.socks4a/quicktun.socks4a
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/quicktun.socks4a/quicktun.socks4a	Sun Nov 04 15:16:59 2012 +0000
+++ b/contrib/quicktun.socks4a/quicktun.socks4a	Sun Nov 04 15:22:06 2012 +0000
@@ -90,17 +90,15 @@
 
   if len(sendq)>0:
     try:
-      sendq    = sendq[os.write         (tun_stdin,sendq[:1024])
-                                                              :]
+      sendq    = sendq       [os.write(tun_stdin,sendq[:1024]):]
     except OSError as ex:
       if ex.errno!=11:
         break
 
   if len(recvq)>0:
     try:
-      recvq    = recvq[udp.sendto                (recvq[:1024],
-                                     (LOCAL_ADDRESS,LOCAL_PORT))
-                                                              :]
+      recvq    = recvq                [udp.sendto(recvq[:1024],
+                                   (LOCAL_ADDRESS,LOCAL_PORT)):]
     except OSError as ex:
       if ex.errno!=11:
         break