Skip to content

Commit d1abbd0

Browse files
committed
clean up
1 parent ab5b4b3 commit d1abbd0

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

scripts/aws/ec2.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,18 +208,15 @@ def __fix_network_interface_in_sockd_conf(self) -> None:
208208

209209
logging.info(f"Detected primary network interface: {primary_interface}")
210210

211-
# Read the current sockd.conf
212211
with open('/etc/sockd.conf', 'r') as f:
213212
config = f.read()
214213

215-
# Replace any external interface declaration
216214
new_config = re.sub(
217215
r'external:\s+\w+',
218216
f'external: {primary_interface}',
219217
config
220218
)
221219

222-
# Write back the updated config
223220
with open('/etc/sockd.conf', 'w') as f:
224221
f.write(new_config)
225222

@@ -232,7 +229,6 @@ def __fix_network_interface_in_sockd_conf(self) -> None:
232229
def __run_socks_proxy(self) -> None:
233230
logging.info("Starts the SOCKS proxy service")
234231

235-
# Fix network interface for R7i compatibility
236232
self.__fix_network_interface_in_sockd_conf()
237233

238234
command = ["sockd", "-D"]

0 commit comments

Comments
 (0)