Compare commits

..

No commits in common. 'master' and 'v0.4.6.10-f801929' have entirely different histories.

@ -2,5 +2,3 @@ keys/
*.egg-info
.tox/
__cache__
__pycache__
*/__pycache__

@ -1,4 +1,4 @@
FROM python:3.10-alpine
FROM python:3.9-alpine
# if omitted, the versions are determined from the git tags
ARG tor_version

@ -4,13 +4,6 @@
## Changelog
* 26 jul 2022
* Update `onions` tool to v0.7.1:
* Fix an issue when restarting a container with control port enabled
* Updated to python 3.10
* Fix a typo in `docker-compose.vanguards-network.yml`, it works now
* Update `tor` to `0.4.7.8`
* 23 dec 2021
* Update `onions` tool to v0.7.0:
* Drop support of onion v2 adresses as tor network does not accept them anymore

@ -1 +1 @@
0.4.7.12
0.4.6.10

@ -8,7 +8,7 @@ services:
environment:
# Enable control port with ip binding (see networks configuration bellow)
# Using network interface instead of 0.0.0.0 help to protect control port from hidden services.
TOR_CONTROL_PORT: 172.16.111.10
TOR_CONTROL_PORT: 127.16.111.10
# Set controle port password (optionnal)
TOR_CONTROL_PASSWORD: something_secret
@ -54,7 +54,7 @@ services:
environment:
# Set tor hostname (or ip:port or unix:/path/to/socket.sock)
TOR_CONTROL_PORT: tor:9051
TOR_CONTROL_PORT: tor
# set password if needed
TOR_CONTROL_PASSWORD: something_secret

@ -57,10 +57,9 @@ class Setup(object):
self.setup[host]['ports'][host].append(port)
def _hash_control_port_password(self, password):
self.control_hashed_password = subprocess.check_output(
['/usr/local/bin/tor', '--quiet', '--hash-password', password],
env={'HOME': '/tmp'}
).decode()
self.control_hashed_password = subprocess.check_output([
'tor', '--quiet', '--hash-password', password
]).decode()
def _parse_control_port_variable(self, check_ip=True):
control_port = os.environ['TOR_CONTROL_PORT']

1317
poetry.lock generated

File diff suppressed because it is too large Load Diff

@ -1,6 +1,6 @@
[tool.poetry]
name = "docker-tor-hidden-service"
version = "0.7.1"
version = "0.7.0"
description = "Display onion sites hosted"
authors = ["Christophe Mehay <cmehay@nospam.student.42.fr>"]
license = "WTFPL"
@ -23,24 +23,24 @@ packages = [
onions = "onions:main"
[tool.poetry.dependencies]
python = ">=3.10,<3.11"
Jinja2 = ">=2.10"
importlib_metadata = ">=1.6.0"
python = ">=3.8,<3.10"
pytor = "^0.1.7"
Jinja2 = "^2.10"
pyentrypoint = "^0.7.4"
importlib_metadata = "^1.6.0"
vanguards = "^0.3.1"
ipy = ">=1.00"
pytor = '^0.1.9'
pyentrypoint = "^0.8.0"
ipy = "^1.00"
[tool.poetry.dev-dependencies]
autopep8 = ">=1.5.2"
tox = ">=3.15.0"
cryptography = ">=3.2"
pylint = ">=2.5.2"
ptpython = ">=3.0.2"
black = ">=22.6.0"
pre-commit = "^2.20.0"
pytest = ">=5.4.2"
pyfakefs = ">=4.0.2"
autopep8 = "^1.5.2"
tox = "^3.15.0"
cryptography = "^3.2"
pylint = "^2.5.2"
ptpython = "^3.0.2"
black = "^19.10b0"
pre-commit = "^2.3.0"
pytest = "^5.4.2"
pyfakefs = "^4.0.2"
[build-system]
requires = ["poetry>=0.12"]

@ -1,6 +1,6 @@
[tox]
isolated_build = true
envlist = py310
envlist = py39
[testenv]
whitelist_externals = poetry

Loading…
Cancel
Save