portmap loss & android ipv6 failed & public ip detect

This commit is contained in:
TenderIronh
2024-11-21 10:31:07 +08:00
parent 3616768682
commit 77bfa45172
5 changed files with 32 additions and 9 deletions
+1 -1
View File
@@ -239,7 +239,7 @@ func (c *Config) delete(app AppConfig) {
defer c.save()
for i := 0; i < len(c.Apps); i++ {
if (app.SrcPort != 0 && c.Apps[i].Protocol == app.Protocol && c.Apps[i].SrcPort == app.SrcPort) || // normal app
(app.SrcPort == 0 && c.Apps[i].PeerNode == app.PeerNode) { // memapp
(app.SrcPort == 0 && c.Apps[i].SrcPort == 0 && c.Apps[i].PeerNode == app.PeerNode) { // memapp
if i == len(c.Apps)-1 {
c.Apps = c.Apps[:i]
} else {