Update Proxy.py

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2023-09-07 00:15:55 +08:00
parent 065095ffd3
commit 1430f0d4b1
+2 -4
View File
@@ -16,6 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
from Furious.Utility.Constants import PLATFORM
from Furious.Utility.Utility import runCommand
import logging
import subprocess
@@ -23,10 +24,6 @@ import subprocess
logger = logging.getLogger(__name__)
def runCommand(*args, **kwargs):
return subprocess.run(*args, **kwargs)
def linuxProxyConfig(proxy_args, arg0, arg1):
runCommand(
[
@@ -51,6 +48,7 @@ def darwinProxyConfig(operation, *args):
check=True,
)
# Replace with command.stdout.decode('utf-8', 'replace')...?
service = list(filter(lambda x: x != '', command.stdout.decode().split('\n')))
return service[1:]