From 238791d07997855d89c0c6ae6ae82feb5dc0bab9 Mon Sep 17 00:00:00 2001 From: litlighilit Date: Tue, 24 Jun 2025 19:07:57 +0800 Subject: [PATCH] refine: rm no use branch --- get_xha_user_pwd.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/get_xha_user_pwd.py b/get_xha_user_pwd.py index 505467a..ea044f0 100644 --- a/get_xha_user_pwd.py +++ b/get_xha_user_pwd.py @@ -31,9 +31,7 @@ class Loginer: def check_connectivity(self): interface = self.interface if not self.interface_def: - command = ['ping'] - if not self.interface_def: - command += ["-I", interface] + command = ["ping", "-I", interface] host = "223.5.5.5" command += ['-c', '1', host] # -n 1 on windows, -c 1 on linux try: