From 2d801fc236fe77f267c11ebdfd1778291d1dec3a Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Wed, 13 Sep 2023 11:50:36 +0800 Subject: [PATCH] fix(rpcd): fix mptcp condition Signed-off-by: Tianling Shen --- root/usr/share/rpcd/ucode/luci.homeproxy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/usr/share/rpcd/ucode/luci.homeproxy b/root/usr/share/rpcd/ucode/luci.homeproxy index 9524d6f..0a0bd22 100755 --- a/root/usr/share/rpcd/ucode/luci.homeproxy +++ b/root/usr/share/rpcd/ucode/luci.homeproxy @@ -158,7 +158,7 @@ const methods = { if (fd) { for (let line = fd.read('line'); length(line); line = fd.read('line')) { if (match(trim(line), /Environment: (go[0-9\.]+)/)) - features['has_mptcp'] = (index(line, 'go1.19') !== -1) ? true : false; + features['has_mptcp'] = (index(line, 'go1.19') === -1) ? true : false; let tags = match(trim(line), /Tags: (.*)/); if (!tags)