mirror of
https://github.com/2dust/v2rayN.git
synced 2025-08-24 11:56:55 +00:00
Add support: custom outbound
This commit is contained in:
parent
b30191feb2
commit
9531e7c8f8
1 changed files with 7 additions and 0 deletions
|
@ -40,6 +40,12 @@ namespace v2rayN
|
|||
|
||||
try
|
||||
{
|
||||
//支持自定义文件覆盖默认配置
|
||||
string path = GetPath(res);
|
||||
if (File.Exists(path))
|
||||
{
|
||||
return LoadResource(path);
|
||||
}
|
||||
Assembly assembly = Assembly.GetExecutingAssembly();
|
||||
using (Stream stream = assembly.GetManifestResourceStream(res))
|
||||
using (StreamReader reader = new StreamReader(stream))
|
||||
|
@ -171,6 +177,7 @@ namespace v2rayN
|
|||
/// <returns></returns>
|
||||
public static string List2String(List<string> lst, bool wrap = false)
|
||||
{
|
||||
if (lst == null) return string.Empty;
|
||||
try
|
||||
{
|
||||
if (wrap)
|
||||
|
|
Loading…
Reference in a new issue