Skip to content

Commit 383dd96

Browse files
committed
fix: set tunnel addre in core setting
1 parent 89ac0ab commit 383dd96

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

core/setting/core.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@ def change_config(request: SetSettingsModel) -> bool:
2020
config,
2121
flags=re.MULTILINE,
2222
)
23-
if request.tunnel_address and request.tunnel_address.strip() != "":
24-
config = re.sub(
25-
r"^local\s+.*",
26-
f"local {request.tunnel_address}",
27-
config,
28-
flags=re.MULTILINE,
29-
)
3023

3124
with open(setting_file, "w") as file:
3225
file.write(config)

0 commit comments

Comments
 (0)