commit
0de4f23a29
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
@ -11,7 +11,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]
|
||||
python-version: [3.7, 3.8, 3.9]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
|
4
NEWS.md
4
NEWS.md
|
@ -1,5 +1,9 @@
|
|||
User-visible changes in "magic-wormhole-transit-relay":
|
||||
|
||||
## unreleased
|
||||
|
||||
* drop Python 2, Python 3.5 and 3.6 support
|
||||
|
||||
## Release 0.2.1 (11-Sep-2019)
|
||||
|
||||
* listen on IPv4+IPv6 properly (#12)
|
||||
|
|
|
@ -18,7 +18,6 @@ The resuting "usage.sqlite" should be passed into --usage-db=, e.g. "twist
|
|||
transitrelay --usage=.../PATH/TO/usage.sqlite".
|
||||
"""
|
||||
|
||||
from __future__ import unicode_literals, print_function
|
||||
import sys
|
||||
from wormhole_transit_relay.database import open_existing_db, create_db
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@ Use the following in /etc/munin/plugin-conf.d/wormhole :
|
|||
env.usagedb /path/to/your/wormhole/server/usage.sqlite
|
||||
"""
|
||||
|
||||
from __future__ import print_function
|
||||
import os, sys, time, sqlite3
|
||||
|
||||
CONFIG = """\
|
||||
|
|
|
@ -7,7 +7,6 @@ Use the following in /etc/munin/plugin-conf.d/wormhole :
|
|||
env.usagedb /path/to/your/wormhole/server/usage.sqlite
|
||||
"""
|
||||
|
||||
from __future__ import print_function
|
||||
import os, sys, time, sqlite3
|
||||
|
||||
CONFIG = """\
|
||||
|
|
|
@ -7,7 +7,6 @@ Use the following in /etc/munin/plugin-conf.d/wormhole :
|
|||
env.usagedb /path/to/your/wormhole/server/usage.sqlite
|
||||
"""
|
||||
|
||||
from __future__ import print_function
|
||||
import os, sys, time, sqlite3
|
||||
|
||||
CONFIG = """\
|
||||
|
|
|
@ -7,7 +7,6 @@ Use the following in /etc/munin/plugin-conf.d/wormhole :
|
|||
env.usagedb /path/to/your/wormhole/server/usage.sqlite
|
||||
"""
|
||||
|
||||
from __future__ import print_function
|
||||
import os, sys, time, sqlite3
|
||||
|
||||
CONFIG = """\
|
||||
|
|
|
@ -7,7 +7,6 @@ Use the following in /etc/munin/plugin-conf.d/wormhole :
|
|||
env.usagedb /path/to/your/wormhole/server/usage.sqlite
|
||||
"""
|
||||
|
||||
from __future__ import print_function
|
||||
import os, sys, time, sqlite3
|
||||
|
||||
CONFIG = """\
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
from __future__ import unicode_literals
|
||||
import os
|
||||
import sqlite3
|
||||
import tempfile
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
from __future__ import unicode_literals, print_function
|
||||
from twisted.trial import unittest
|
||||
from .. import server_tap
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
from __future__ import print_function, unicode_literals
|
||||
import os
|
||||
from twisted.python import filepath
|
||||
from twisted.trial import unittest
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
from __future__ import print_function, unicode_literals
|
||||
try:
|
||||
from unittest import mock
|
||||
except ImportError:
|
||||
import mock
|
||||
from unittest import mock
|
||||
from twisted.trial import unittest
|
||||
from ..increase_rlimits import increase_rlimits
|
||||
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
from __future__ import unicode_literals, print_function
|
||||
from twisted.trial import unittest
|
||||
try:
|
||||
from unittest import mock
|
||||
except ImportError:
|
||||
import mock
|
||||
from unittest import mock
|
||||
from twisted.application.service import MultiService
|
||||
from .. import server_tap
|
||||
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
from __future__ import print_function, unicode_literals
|
||||
import os, io, json, sqlite3
|
||||
try:
|
||||
from unittest import mock
|
||||
except ImportError:
|
||||
import mock
|
||||
from unittest import mock
|
||||
from twisted.trial import unittest
|
||||
from ..transit_server import Transit
|
||||
from .. import database
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
from __future__ import print_function, unicode_literals
|
||||
from binascii import hexlify
|
||||
from twisted.trial import unittest
|
||||
from .common import ServerBase
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
from __future__ import print_function, unicode_literals
|
||||
import re, time, json
|
||||
from collections import defaultdict
|
||||
from twisted.python import log
|
||||
|
@ -52,10 +51,7 @@ class TransitConnection(LineReceiver):
|
|||
def connectionMade(self):
|
||||
self._started = time.time()
|
||||
self._log_requests = self.factory._log_requests
|
||||
try:
|
||||
self.transport.setTcpKeepAlive(True)
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
def lineReceived(self, line):
|
||||
# old: "please relay {64}\n"
|
||||
|
|
Loading…
Reference in New Issue
Block a user