refine: rm no use branch

This commit is contained in:
lit
2025-06-24 19:07:57 +08:00
parent 6a82d46a6b
commit 238791d079
+1 -3
View File
@@ -31,9 +31,7 @@ class Loginer:
def check_connectivity(self): def check_connectivity(self):
interface = self.interface interface = self.interface
if not self.interface_def: if not self.interface_def:
command = ['ping'] command = ["ping", "-I", interface]
if not self.interface_def:
command += ["-I", interface]
host = "223.5.5.5" host = "223.5.5.5"
command += ['-c', '1', host] # -n 1 on windows, -c 1 on linux command += ['-c', '1', host] # -n 1 on windows, -c 1 on linux
try: try: