Skip to content

Commit 700f981

Browse files
authored
1 parent eee4328 commit 700f981

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

v2rayN/ServiceLib/Handler/ConfigHandler.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1847,7 +1847,19 @@ public static async Task<int> AddBatchServers(Config config, string strData, str
18471847
}
18481848

18491849
//May be standard uri mixed with internal uri
1850-
var innerUriCount = await AddBatchServers4InnerUri(config, strData, subid, isSub);
1850+
var innerUriCount = 0;
1851+
if (Utils.IsBase64String(strData))
1852+
{
1853+
innerUriCount = await AddBatchServers4InnerUri(config, Utils.Base64Decode(strData), subid, isSub);
1854+
}
1855+
if (innerUriCount < 1)
1856+
{
1857+
innerUriCount = await AddBatchServers4InnerUri(config, strData, subid, isSub);
1858+
}
1859+
if (innerUriCount < 1)
1860+
{
1861+
innerUriCount = await AddBatchServers4InnerUri(config, Utils.Base64Decode(strData), subid, isSub);
1862+
}
18511863
if (innerUriCount > 0)
18521864
{
18531865
if (counter > 0)

0 commit comments

Comments
 (0)