diff --git a/src/wsdd.py b/src/wsdd.py index dd29577..d7392ad 100755 --- a/src/wsdd.py +++ b/src/wsdd.py @@ -2013,6 +2013,11 @@ def chroot(root: str) -> bool: """ # preload for socket.gethostbyaddr() import encodings.idna + import shutil + os.makedirs(root + '/etc/', exist_ok=True) + shutil.copy('/etc/resolv.conf',root + '/etc/') + # for listen + import concurrent.futures.thread try: os.chroot(root)