mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-04 10:42:04 +00:00
Fix target auto not working properly
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -1330,7 +1330,7 @@ std::string subconverter(RESPONSE_CALLBACK_ARGS)
|
|||||||
tribool argClashNewField = getUrlArg(argument, "new_name");
|
tribool argClashNewField = getUrlArg(argument, "new_name");
|
||||||
int intSurgeVer = argSurgeVer.size() ? to_int(argSurgeVer, 3) : 3;
|
int intSurgeVer = argSurgeVer.size() ? to_int(argSurgeVer, 3) : 3;
|
||||||
if(argTarget == "auto")
|
if(argTarget == "auto")
|
||||||
matchUserAgent(request.headers["X-User-Agent"], argTarget, argClashNewField, intSurgeVer);
|
matchUserAgent(request.headers["User-Agent"], argTarget, argClashNewField, intSurgeVer);
|
||||||
|
|
||||||
switch(hash_(argTarget))
|
switch(hash_(argTarget))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user