Drop support for onion addresses v2

* Update `onions` tool to v0.7.0
 * Update `tor` to `0.4.6.9`
This commit is contained in:
Chirstophe Mehay 2021-12-24 00:04:37 +01:00 committed by Christophe Mehay
parent d0dd28733d
commit 2fc3b6eb84
16 changed files with 568 additions and 831 deletions

View file

@ -4,7 +4,6 @@ import os
import pathlib
import re
from pytor import OnionV2
from pytor import OnionV3
from pytor.onion import EmptyDirException
@ -14,7 +13,7 @@ class ServicesGroup(object):
name = None
version = None
imported_key = False
_default_version = 2
_default_version = 3
_onion = None
_hidden_service_dir = "/var/lib/tor/hidden_service/"
@ -27,7 +26,6 @@ class ServicesGroup(object):
name_regex = r'^[a-zA-Z0-9-_]+$'
self.onion_map = {
2: OnionV2,
3: OnionV3,
}