refine: rm no use branch
This commit is contained in:
+1
-3
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user