Skip to content

Commit d862d0c

Browse files
authored
Merge pull request #291 from kun-codes/fix/prevent-local-hosts-from-connecting-to-mitmproxy
Fix/prevent local hosts from connecting to mitmproxy
2 parents d6f77df + acc3e3c commit d862d0c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/website_blocker/websiteBlockerManager.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ def _start_mitmdump(
104104
if os.name == "nt":
105105
args: List[str] = [
106106
mitmdump_bin_path,
107-
"--set",
108-
"allow_remote=true",
107+
"--listen-host",
108+
"127.0.0.1",
109109
"-p",
110110
str(listening_port),
111111
"--showhost",
@@ -147,8 +147,8 @@ def _start_mitmdump(
147147

148148
args = [
149149
mitmdump_bin_path,
150-
"--set",
151-
"allow_remote=true",
150+
"--listen-host",
151+
"127.0.0.1",
152152
"-p",
153153
str(listening_port),
154154
"--showhost",

0 commit comments

Comments
 (0)