fix(rpcd): fix mptcp condition

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2023-09-13 11:50:36 +08:00
parent 0621ca0bce
commit 2d801fc236
No known key found for this signature in database
GPG key ID: 6850B6345C862176

View file

@ -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)