Use create_subprocess_shell and fix hosts file appending on Linux

This commit is contained in:
2022-02-27 13:50:59 +07:00
parent 44cdf424dc
commit 992048ede3
3 changed files with 4 additions and 4 deletions

View File

@ -128,7 +128,7 @@ class Patcher:
telemetry = await self.is_telemetry_blocked()
if not telemetry:
raise ValueError("All telemetry are blocked")
telemetry_hosts = ""
telemetry_hosts = "\n"
for url in telemetry:
telemetry_hosts += "0.0.0.0 " + url + "\n"
match platform.system():