예제 #1
0
파일: server.py 프로젝트: Tobey123/sshuttle
 def new_channel(channel, data):
     (family, dstip, dstport) = data.decode("ASCII").split(',', 2)
     family = int(family)
     # AF_INET is the same constant on Linux and BSD but AF_INET6
     # is different. As the client and server can be running on
     # different platforms we can not just set the socket family
     # to what comes in the wire.
     if family != socket.AF_INET:
         family = socket.AF_INET6
     dstport = int(dstport)
     outwrap = ssnet.connect_dst(family, dstip, dstport)
     handlers.append(Proxy(MuxWrapper(mux, channel), outwrap))
예제 #2
0
 def new_channel(channel, data):
     (family, dstip, dstport) = data.decode("ASCII").split(',', 2)
     family = int(family)
     # AF_INET is the same constant on Linux and BSD but AF_INET6
     # is different. As the client and server can be running on
     # different platforms we can not just set the socket family
     # to what comes in the wire.
     if family != socket.AF_INET:
         family = socket.AF_INET6
     dstport = int(dstport)
     outwrap = ssnet.connect_dst(family, dstip, dstport)
     handlers.append(Proxy(MuxWrapper(mux, channel), outwrap))
예제 #3
0
파일: server.py 프로젝트: tberton/sshuttle
 def new_channel(channel, data):
     (family, dstip, dstport) = data.split(',', 2)
     family = int(family)
     dstport = int(dstport)
     outwrap = ssnet.connect_dst(family, dstip, dstport)
     handlers.append(Proxy(MuxWrapper(mux, channel), outwrap))
예제 #4
0
파일: server.py 프로젝트: dlenski/sshuttle
 def new_channel(channel, data):
     (family, dstip, dstport) = data.decode("ASCII").split(',', 2)
     family = int(family)
     dstport = int(dstport)
     outwrap = ssnet.connect_dst(family, dstip, dstport)
     handlers.append(Proxy(MuxWrapper(mux, channel), outwrap))