mirror of
https://github.com/snltty/linker.git
synced 2026-03-15 18:40:54 +08:00
穿透节点
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
v1.9.9
|
||||
2026-01-17 11:20:38
|
||||
2026-01-18 11:39:59
|
||||
1. 一些累计更新,一些BUG修复
|
||||
2. 国家级别的连接限制
|
||||
3. 修复一些地方未能正确释放端口的问题
|
||||
|
||||
@@ -23,4 +23,9 @@ slug: /question
|
||||
net stop winnat
|
||||
net start winnat
|
||||
```
|
||||
7. 有些linux系统如果无法在线更新linux,特别是arm,可以尝试更新系统CA证书,比如
|
||||
```
|
||||
wget --no-check-certificate http://curl.haxx.se/ca/cacert.pem
|
||||
cp cacert.pem /etc/ssl/certs/ca-certificates.crt
|
||||
```
|
||||
:::
|
||||
@@ -86,12 +86,15 @@ namespace linker.messenger.logger
|
||||
};
|
||||
TimerHelper.SetIntervalLong(() =>
|
||||
{
|
||||
string path = Path.Join(Helper.CurrentDirectory, "logs", $"{DateTime.Now.AddMonths(-6):yyyy-MM-dd}.log");
|
||||
if (File.Exists(path))
|
||||
|
||||
var files = new DirectoryInfo(Path.Join(Helper.CurrentDirectory, "logs"))
|
||||
.GetFileSystemInfos().Where(item => item is System.IO.FileInfo)
|
||||
.Where(c => c.LastWriteTime < DateTime.Now.AddMonths(-6));
|
||||
foreach (var item in files)
|
||||
{
|
||||
try
|
||||
{
|
||||
File.Delete(path);
|
||||
File.Delete(item.FullName);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
@@ -382,10 +382,6 @@ namespace linker.messenger.node
|
||||
public async Task<TStore> GetNode(string nodeId)
|
||||
{
|
||||
TStore node = await nodeStore.GetByNodeId(nodeId).ConfigureAwait(false);
|
||||
if (node == null || Environment.TickCount64 - node.LastTicks > 15000)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
return node;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using linker.libs;
|
||||
using linker.libs.extends;
|
||||
using linker.messenger.node;
|
||||
using linker.messenger.sforward.messenger;
|
||||
|
||||
@@ -76,7 +77,7 @@ namespace linker.messenger.sforward.server
|
||||
.Where(c => super || Environment.TickCount64 - c.LastTicks < 15000)
|
||||
.Where(c =>
|
||||
{
|
||||
return super || (c.Public & (sforward.Contains(c.NodeId) || sforward.Contains("*")));
|
||||
return super || (c.Public && (sforward.Contains(c.NodeId) || sforward.Contains("*")));
|
||||
})
|
||||
.OrderByDescending(c => c.LastTicks);
|
||||
|
||||
|
||||
BIN
src/linker.snltty.com/img/earth-digital.jpg
Normal file
BIN
src/linker.snltty.com/img/earth-digital.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 450 KiB |
BIN
src/linker.snltty.com/img/earth-digital1.png
Normal file
BIN
src/linker.snltty.com/img/earth-digital1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 493 KiB |
BIN
src/linker.snltty.com/img/earth-digital3.jpg
Normal file
BIN
src/linker.snltty.com/img/earth-digital3.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 MiB |
Reference in New Issue
Block a user