v6d3music/v6d3music/utils/tor_prefix.py
2022-08-23 18:32:45 +03:00

11 lines
244 B
Python

__all__ = ('tor_prefix',)
import os
if (address := os.getenv('v6tor', None)) is not None:
print('tor through torsocks')
tor_prefix = ['torsocks', '--address', address]
else:
print('tor through torify')
tor_prefix = ['torify']