pyproxytools 0.5.2__tar.gz → 0.5.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. {pyproxytools-0.5.2/pyproxytools.egg-info → pyproxytools-0.5.3}/PKG-INFO +4 -4
  2. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxy/__init__.py +1 -1
  3. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxy/handlers/https.py +6 -1
  4. {pyproxytools-0.5.2 → pyproxytools-0.5.3/pyproxytools.egg-info}/PKG-INFO +4 -4
  5. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxytools.egg-info/requires.txt +3 -3
  6. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/requirements.txt +3 -3
  7. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/LICENSE +0 -0
  8. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/MANIFEST.in +0 -0
  9. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/README.md +0 -0
  10. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproject.toml +0 -0
  11. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxy/__main__.py +0 -0
  12. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxy/handlers/__init__.py +0 -0
  13. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxy/handlers/client.py +0 -0
  14. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxy/handlers/http.py +0 -0
  15. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxy/modules/__init__.py +0 -0
  16. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxy/modules/cancel_inspect.py +0 -0
  17. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxy/modules/custom_header.py +0 -0
  18. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxy/modules/filter.py +0 -0
  19. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxy/modules/shortcuts.py +0 -0
  20. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxy/monitoring/__init__.py +0 -0
  21. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxy/monitoring/auth.py +0 -0
  22. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxy/monitoring/messages.pot +0 -0
  23. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxy/monitoring/monitor.py +0 -0
  24. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxy/monitoring/routes.py +0 -0
  25. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxy/monitoring/translations/en/LC_MESSAGES/messages.mo +0 -0
  26. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxy/monitoring/translations/en/LC_MESSAGES/messages.po +0 -0
  27. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxy/monitoring/translations/fr/LC_MESSAGES/messages.mo +0 -0
  28. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxy/monitoring/translations/fr/LC_MESSAGES/messages.po +0 -0
  29. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxy/pyproxy.py +0 -0
  30. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxy/server.py +0 -0
  31. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxy/utils/__init__.py +0 -0
  32. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxy/utils/args.py +0 -0
  33. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxy/utils/config.py +0 -0
  34. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxy/utils/crypto.py +0 -0
  35. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxy/utils/http_req.py +0 -0
  36. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxy/utils/logger.py +0 -0
  37. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxytools.egg-info/SOURCES.txt +0 -0
  38. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxytools.egg-info/dependency_links.txt +0 -0
  39. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxytools.egg-info/entry_points.txt +0 -0
  40. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/pyproxytools.egg-info/top_level.txt +0 -0
  41. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/setup.cfg +0 -0
  42. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/setup.py +0 -0
  43. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/tests/modules/__init__.py +0 -0
  44. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/tests/modules/test_cancel_inspect.py +0 -0
  45. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/tests/modules/test_custom_header.py +0 -0
  46. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/tests/modules/test_filter.py +0 -0
  47. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/tests/modules/test_shortcuts.py +0 -0
  48. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/tests/utils/__init__.py +0 -0
  49. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/tests/utils/test_crypto.py +0 -0
  50. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/tests/utils/test_http_req.py +0 -0
  51. {pyproxytools-0.5.2 → pyproxytools-0.5.3}/tests/utils/test_logger.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyproxytools
3
- Version: 0.5.2
3
+ Version: 0.5.3
4
4
  Summary: Lightweight and fast python web proxy
5
5
  Author: pyproxytools
6
6
  License-Expression: MIT
@@ -23,9 +23,9 @@ Classifier: Topic :: Utilities
23
23
  Classifier: Typing :: Typed
24
24
  Description-Content-Type: text/markdown
25
25
  License-File: LICENSE
26
- Requires-Dist: rich-argparse>=1.7.2
27
- Requires-Dist: pyOpenSSL>=26.1.0
28
- Requires-Dist: requests>=2.33.1
26
+ Requires-Dist: rich-argparse>=1.7.1
27
+ Requires-Dist: pyOpenSSL==25.3.0
28
+ Requires-Dist: requests>=2.32.5
29
29
  Requires-Dist: Flask>=3.1.2
30
30
  Requires-Dist: Flask-HTTPAuth>=4.8.1
31
31
  Requires-Dist: Flask-Babel>=4.0.0
@@ -5,7 +5,7 @@ that holds the current version number of the application.
5
5
 
6
6
  import os
7
7
 
8
- __version__ = "0.5.2"
8
+ __version__ = "0.5.3"
9
9
 
10
10
  if os.path.isdir("pyproxy/monitoring"):
11
11
  __slim__ = False
@@ -377,7 +377,12 @@ class HttpsHandler:
377
377
  and "target_ip" not in self.active_connections[thread_id]
378
378
  ):
379
379
  try:
380
- target_ip, target_port = server_socket.getpeername()
380
+ peer = server_socket.getpeername()
381
+ if len(peer) == 2:
382
+ target_ip, target_port = peer
383
+ else:
384
+ target_ip, target_port, *_ = peer
385
+
381
386
  self.active_connections[thread_id]["target_ip"] = target_ip
382
387
  self.active_connections[thread_id]["target_port"] = target_port
383
388
  except OSError as e:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyproxytools
3
- Version: 0.5.2
3
+ Version: 0.5.3
4
4
  Summary: Lightweight and fast python web proxy
5
5
  Author: pyproxytools
6
6
  License-Expression: MIT
@@ -23,9 +23,9 @@ Classifier: Topic :: Utilities
23
23
  Classifier: Typing :: Typed
24
24
  Description-Content-Type: text/markdown
25
25
  License-File: LICENSE
26
- Requires-Dist: rich-argparse>=1.7.2
27
- Requires-Dist: pyOpenSSL>=26.1.0
28
- Requires-Dist: requests>=2.33.1
26
+ Requires-Dist: rich-argparse>=1.7.1
27
+ Requires-Dist: pyOpenSSL==25.3.0
28
+ Requires-Dist: requests>=2.32.5
29
29
  Requires-Dist: Flask>=3.1.2
30
30
  Requires-Dist: Flask-HTTPAuth>=4.8.1
31
31
  Requires-Dist: Flask-Babel>=4.0.0
@@ -1,6 +1,6 @@
1
- rich-argparse>=1.7.2
2
- pyOpenSSL>=26.1.0
3
- requests>=2.33.1
1
+ rich-argparse>=1.7.1
2
+ pyOpenSSL==25.3.0
3
+ requests>=2.32.5
4
4
  Flask>=3.1.2
5
5
  Flask-HTTPAuth>=4.8.1
6
6
  Flask-Babel>=4.0.0
@@ -1,6 +1,6 @@
1
- rich-argparse>=1.7.2
2
- pyOpenSSL>=26.1.0
3
- requests>=2.33.1
1
+ rich-argparse>=1.7.1
2
+ pyOpenSSL==25.3.0
3
+ requests>=2.32.5
4
4
  Flask>=3.1.2
5
5
  Flask-HTTPAuth>=4.8.1
6
6
  Flask-Babel>=4.0.0
File without changes
File without changes
File without changes
File without changes
File without changes