mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-03 02:02:24 +00:00
Enhancements
Fix compatibility with some non-standard Surge configurations. Refactor Clash Rule generation to speed up the process. Optimize codes.
This commit is contained in:
5 files changed
+131
-108
No files matched your search
@@ -1226,7 +1226,9 @@ bool explodeSurge(std::string surge, const std::string &custom_port, int local_p
|
||||
for(auto &y : headers)
|
||||
{
|
||||
header = split(trim(y), ":");
|
||||
if(regMatch(header[0], "(?i)host"))
|
||||
if(header.size() != 2)
|
||||
continue;
|
||||
else if(regMatch(header[0], "(?i)host"))
|
||||
host = trim_quote(header[1]);
|
||||
else if(regMatch(header[0], "(?i)edge"))
|
||||
edge = trim_quote(header[1]);
|
||||
|
||||
Reference in new issue
Block a user