File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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" ]
You can’t perform that action at this time.
0 commit comments