Verified Commit 2b33df7e authored by Patrick Schleizer's avatar Patrick Schleizer
Browse files

part of fixing meek lite in Whonix

add /usr/lib/anon-gw-anonymizer-config/edit-etc-resolv-conf

https://forums.whonix.org/t/censorship-circumvention-tor-pluggable-transports/2601/9

https://forums.whonix.org/t/whonix-gateway-cli-15-0-1-5-4-meek-azure-bridge-tls-error/11383

Thanks to @Bl3ckJ4ck for the bug report!
parent 6947dd1c
#!/usr/bin/python3 -u
## Copyright (C) 2021 - 2021 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
## See the file COPYING for copying conditions.
import os, sys
from subprocess import check_output, STDOUT, call, Popen, PIPE
if os.path.exists('/usr/share/anon-gw-base-files/gateway'):
whonix=True
else:
whonix=False
def edit_etc_resolv_conf():
if not whonix:
## Not implemented for non-Whonix.
return
try:
command = ['/usr/lib/anon-gw-anonymizer-config/edit-etc-resolv-conf']
p = Popen(command, stdout=PIPE, stderr=PIPE)
stdout, stderr = p.communicate()
except:
error_msg = "edit-etc-resolv-conf unexpected error: " + str(sys.exc_info()[0])
print(error_msg)
def main():
edit_etc_resolv_conf()
if __name__ == "__main__":
main()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment