Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed Nov 28, 2024
1 parent 810a79c commit fd4c494
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .builder/actions/tls_server_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@ def run(self, env):
for c in iter(lambda: p1.stderr.read(1), b""):
sys.stdout.buffer.write(c)

p1 = subprocess.Popen(["netsh", "advfirewall", "set", "allprofiles", "state", "off"
], cwd=dir, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
time.sleep(1)
p1.poll()
print("Return code for p1 is {}".format(p1.returncode))
print("=== stdout 1:")
for c in iter(lambda: p1.stdout.read(1), b""):
sys.stdout.buffer.write(c)
print("=== stderr 1:")
for c in iter(lambda: p1.stderr.read(1), b""):
sys.stdout.buffer.write(c)

p1 = subprocess.Popen(["netsh", "advfirewall", "show", "all"
], cwd=dir, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
Expand Down

0 comments on commit fd4c494

Please sign in to comment.