mirror of https://github.com/2dust/v2rayN
23 lines
658 B
C#
23 lines
658 B
C#
namespace ServiceLib.Handler.Fmt
|
|
{
|
|
public class NaiveproxyFmt : BaseFmt
|
|
{
|
|
public static ProfileItem? ResolveFull(string strData, string? subRemarks)
|
|
{
|
|
if (Contains(strData, "listen", "proxy", "<html>", "<body>"))
|
|
{
|
|
var fileName = WriteAllText(strData);
|
|
|
|
var profileItem = new ProfileItem
|
|
{
|
|
coreType = ECoreType.naiveproxy,
|
|
address = fileName,
|
|
remarks = subRemarks ?? "naiveproxy_custom"
|
|
};
|
|
return profileItem;
|
|
}
|
|
|
|
return null;
|
|
}
|
|
}
|
|
} |