Skip to content

Commit

Permalink
Merge pull request #154 from kpdyer/dev
Browse files Browse the repository at this point in the history
merge to master for 0.2.16
  • Loading branch information
kpdyer committed Jul 21, 2014
2 parents c8b79a4 + e66005c commit 8fccdf1
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 12 deletions.
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
language:
- python
- cpp
compiler:
- gcc
- clang
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y libgmp-dev
python:
- "2.6"
- "2.7"
install:
- "pip install -r requirements.txt"
script:
- "python setup.py test"
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
fteproxy
========

[![Build Status](https://travis-ci.org/kpdyer/fteproxy.svg?branch=master)](https://travis-ci.org/kpdyer/fteproxy)

* homepage: https://fteproxy.org
* source code: https://github.com/kpdyer/fteproxy
* publication: https://kpdyer.com/publications/ccs2013-fte.pdf
Expand All @@ -15,6 +17,17 @@ fteproxy is powered by Format-Transforming Encryption [1] and was presented at C

[1] [Protocol Misidentification Made Easy with Format-Transforming Encryption](https://kpdyer.com/publications/ccs2013-fte.pdf), Kevin P. Dyer, Scott E. Coull, Thomas Ristenpart and Thomas Shrimpton

Quick Start
-----------

On Linux/OSX, use pip to install fteproxy.

```console
pip install fteproxy
```

On Windows, download pre-compiled binaries, located at: https://fteproxy.org/download

Dependencies
--------

Expand Down Expand Up @@ -43,7 +56,6 @@ Documentation

See: https://fteproxy.org/documentation


Author
------

Expand Down
2 changes: 1 addition & 1 deletion fteproxy/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.16-beta
0.2.16
1 change: 0 additions & 1 deletion fteproxy/network_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def close_socket(sock, lock=None):
"""

try:
fte.warn('Closing socket: '+sock)
if lock is not None:
with lock:
sock.close()
Expand Down
6 changes: 0 additions & 6 deletions fteproxy/relay.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ def __init__(self, local_ip, local_port,
remote_ip, remote_port):
threading.Thread.__init__(self)

self._workers = []
self._running = False
self._local_ip = local_ip
self._local_port = local_port
Expand Down Expand Up @@ -130,8 +129,6 @@ def run(self):
w2 = worker(new_stream, conn)
w1.start()
w2.start()
self._workers.append(w1)
self._workers.append(w2)
except socket.timeout:
continue
except socket.error as e:
Expand All @@ -141,9 +138,6 @@ def run(self):
fteproxy.warn('exception in fteproxy.listener: ' + str(e))
break

for w in self._workers:
w.stop()

def stop(self):
"""Terminate the thread and stop listening on ``local_ip:local_port``.
"""
Expand Down
2 changes: 1 addition & 1 deletion fteproxy/tests/test_record_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
class Tests(unittest.TestCase):

@classmethod
def setUpClass(self):
def setUp(self):
fteproxy.conf.setValue('runtime.mode', 'client')
self.record_layers_info = []
self.record_layers_outgoing = []
Expand Down
6 changes: 6 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
fte
pyptlib
obfsproxy
twisted
txsocksx
parsley
5 changes: 3 additions & 2 deletions setup_tbb.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with fteproxy. If not, see <http://www.gnu.org/licenses/>.

from distutils.core import setup
from distutils.core import Extension
from setuptools import setup
from setuptools import Extension

import glob
import sys
Expand All @@ -40,4 +40,5 @@
author_email='[email protected]',
url='https://github.com/kpdyer/fteproxy',
packages=['fteproxy', 'fteproxy.defs', 'fteproxy.tests'],
install_requires=['txsocksx', 'parsley', 'pyptlib', 'obfsproxy', 'twisted', 'fte']
)

0 comments on commit 8fccdf1

Please sign in to comment.