mirror of
https://github.com/2dust/v2rayN.git
synced 2025-08-23 11:26:54 +00:00
22 lines
582 B
C#
22 lines
582 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;
|
|
}
|
|
}
|