helloworld icon indicating copy to clipboard operation
helloworld copied to clipboard

更新订阅服务后,SplitHTTP 路径为空

Open wekingchen opened this issue 1 year ago • 19 comments

更新完订阅服务后,SplitHTTP 路径一栏没有内容,请大佬看看是不是有bug需要修复一下呢?订阅地址的格式没问题,在v2ray和passwall里面都能正确识别。

wekingchen avatar Aug 23 '24 09:08 wekingchen

无该类订阅类链接,可否邮件提供一个订阅链接我测试一下,我来修改它。

zxlhhyccc avatar Aug 24 '24 01:08 zxlhhyccc

vless://[email protected]:443?encryption=none&security=tls&pbk=YOwK8sDJPwbpHljXJIKoOmXwIL-w6J8cb7xxINMaKm4&sid=e17f60d1cd385f5b&spx=%2Fjdf0gfc&type=splithttp&path=%2Fpath#TestLink

格式如上

wekingchen avatar Aug 24 '24 09:08 wekingchen

不好意思,今天太晚,明天我看看能否修一下。

zxlhhyccc avatar Aug 24 '24 15:08 zxlhhyccc

谢谢大佬

wekingchen avatar Aug 25 '24 08:08 wekingchen

有两个path的原因是path值我设的就是"/path"

wekingchen avatar Aug 26 '24 02:08 wekingchen

有两个path的原因是path值我设的就是"/path"

感觉你这个订阅链接有问题,v2rayN和ssrp导入的都不一样,你确定passwll导入正常吗?能否贴出passwall的导入结果?但ssrp如果把订阅链接取消tls就可以导入。

zxlhhyccc avatar Aug 28 '24 00:08 zxlhhyccc

微信截图_20240828103015 微信截图_20240828103106 微信截图_20240828103210 passwall导入正常呢,这个格式是通过v2rayN导出的

wekingchen avatar Aug 28 '24 02:08 wekingchen

ssrp也可以导入,但是请看导入进去就是SplitHTTP 路径一栏是空的 微信截图_20240828105659 微信截图_20240828105717

wekingchen avatar Aug 28 '24 02:08 wekingchen

V2rayN导出的就是这样呢:

vless://[email protected]:443?encryption=none&security=tls&pbk=YOwK8sDJPwbpHljXJIKoOmXwIL-w6J8cb7xxINMaKm4&sid=e17f60d1cd385f5b&spx=%2Fjdf0gfc&type=splithttp&path=%2Fpath#TestLink

wekingchen avatar Aug 28 '24 05:08 wekingchen

V2rayN导出的就是这样呢:

vless://[email protected]:443?encryption=none&security=tls&pbk=YOwK8sDJPwbpHljXJIKoOmXwIL-w6J8cb7xxINMaKm4&sid=e17f60d1cd385f5b&spx=%2Fjdf0gfc&type=splithttp&path=%2Fpath#TestLink

1、我改了一下,去掉&security=tls就可以转换为路径,不仅仅是splithttp,ws、h2都是这个情况。。。,现在是只要有tls就不能显示路径,路径只能在无tls情况下显示,正好与需求相反。。。 2、我用订阅转换,无法转换你这个订阅,还是怀疑这个订阅链接有问题。

zxlhhyccc avatar Aug 28 '24 13:08 zxlhhyccc

谢谢大佬

wekingchen avatar Aug 29 '24 02:08 wekingchen

@wekingchen 问题应该已经解决了,见我提交的PR(总共修改了4个文件): https://github.com/fw876/helloworld/pull/1538 image

zxlhhyccc avatar Sep 08 '24 06:09 zxlhhyccc

@wekingchen 我的pr大屌大佬已合并,现在可以正常导入配置了。

zxlhhyccc avatar Sep 13 '24 05:09 zxlhhyccc

谢谢大佬,我现在卡在toolchain/gcc切换到12后固件编译报错上了,等搞定再试试

wekingchen avatar Sep 13 '24 09:09 wekingchen

谢谢大佬,我现在卡在toolchain/gcc切换到12后固件编译报错上了,等搞定再试试

12是啥东西?gcc版本吗?

zxlhhyccc avatar Sep 13 '24 11:09 zxlhhyccc

是的,lede昨天升级到12之后老是编译不过去

wekingchen avatar Sep 13 '24 13:09 wekingchen

是的,lede昨天升级到12之后老是编译不过去

应该是不可能编译不了,clean后再编译试试。

zxlhhyccc avatar Sep 13 '24 14:09 zxlhhyccc

https://github.com/coolsnowwolf/lede/issues/12462 https://github.com/coolsnowwolf/lede/issues/12464 好多人都有同样的问题,可能需要大屌大佬看看了

wekingchen avatar Sep 14 '24 02:09 wekingchen

@wekingchen 添加这个补丁应该可以解决你的问题。新建补丁名字:002-Support-POSIX-basename-from-musl-libc.patch,然后把这些代码复制粘贴进去即可。我已在大屌的仓库提了PR,见: https://github.com/coolsnowwolf/packages/pull/848 ,你可以试试。 wget下载:wget https://raw.githubusercontent.com/zxlhhyccc/packages/refs/heads/patch-5/utils/tini/patches/002-Support-POSIX-basename-from-musl-libc.patch 补丁放到:feeds/packages/utils/tini/patches/ 目录下。 action编译的话加上一行代码即可。。。。 wget -P ./feeds/packages/utils/tini/patches/ https://raw.githubusercontent.com/zxlhhyccc/packages/refs/heads/patch-5/utils/tini/patches/002-Support-POSIX-basename-from-musl-libc.patch

--- a/src/tini.c
+++ b/src/tini.c
@@ -14,6 +14,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <stdbool.h>
+#include <libgen.h>
 
 #include "tiniConfig.h"
 #include "tiniLicense.h"
@@ -224,14 +225,19 @@ int spawn(const signal_configuration_t*
 }
 
 void print_usage(char* const name, FILE* const file) {
-	fprintf(file, "%s (%s)\n", basename(name), TINI_VERSION_STRING);
+	char *dirc, *bname;
+
+	dirc = strdup(name);
+	bname = basename(dirc);
+
+	fprintf(file, "%s (%s)\n", bname, TINI_VERSION_STRING);
 
 #if TINI_MINIMAL
-	fprintf(file, "Usage: %s PROGRAM [ARGS] | --version\n\n", basename(name));
+	fprintf(file, "Usage: %s PROGRAM [ARGS] | --version\n\n", bname);
 #else
-	fprintf(file, "Usage: %s [OPTIONS] PROGRAM -- [ARGS] | --version\n\n", basename(name));
+	fprintf(file, "Usage: %s [OPTIONS] PROGRAM -- [ARGS] | --version\n\n", bname);
 #endif
-	fprintf(file, "Execute a program under the supervision of a valid init process (%s)\n\n", basename(name));
+	fprintf(file, "Execute a program under the supervision of a valid init process (%s)\n\n", bname);
 
 	fprintf(file, "Command line options:\n\n");
 
@@ -261,6 +267,7 @@ void print_usage(char* const name, FILE*
 	fprintf(file, "  %s: Send signals to the child's process group.\n", KILL_PROCESS_GROUP_GROUP_ENV_VAR);
 
 	fprintf(file, "\n");
+	free(dirc);
 }
 
 void print_license(FILE* const file) {

zxlhhyccc avatar Sep 14 '24 04:09 zxlhhyccc

可以了,感谢大佬的帮助

wekingchen avatar Sep 16 '24 01:09 wekingchen

可以了,感谢大佬的帮助

订阅正常了么?

zxlhhyccc avatar Sep 16 '24 03:09 zxlhhyccc

嗯嗯,正常了,感谢!

wekingchen avatar Sep 18 '24 06:09 wekingchen