1
0
mirror of https://shylinux.com/x/icebergs synced 2025-06-26 18:37:29 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-07-07 18:24:15 +08:00
parent 9bf29af91f
commit 01bacc73a2

View File

@ -404,15 +404,13 @@ func init() {
m.Cmd(SPACE, m.Option(mdb.NAME), SPIDE, DEV_CREATE_TOKEN, ice.Maps{CLIENT_NAME: ice.DEV, TOKEN: token}) m.Cmd(SPACE, m.Option(mdb.NAME), SPIDE, DEV_CREATE_TOKEN, ice.Maps{CLIENT_NAME: ice.DEV, TOKEN: token})
}}, }},
OPEN: {Role: aaa.VOID, Hand: func(m *ice.Message, arg ...string) { OPEN: {Role: aaa.VOID, Hand: func(m *ice.Message, arg ...string) {
if m.Option(mdb.TYPE) == ORIGIN && m.IsLocalhost() { if m.Option(mdb.TYPE) == ORIGIN {
m.ProcessOpen(SpideOrigin(m, m.Option(mdb.NAME))) m.ProcessOpen(SpideOrigin(m, m.Option(mdb.NAME)))
} else { } else if p := ProxyDomain(m, m.Option(mdb.NAME)); p != "" {
if p := ProxyDomain(m, m.Option(mdb.NAME)); p != "" {
m.ProcessOpen(p) m.ProcessOpen(p)
} else { } else {
m.ProcessOpen(S(m.Option(mdb.NAME))) m.ProcessOpen(S(m.Option(mdb.NAME)))
} }
}
}}, }},
DREAM_OPEN: {Hand: func(m *ice.Message, arg ...string) {}}, DREAM_OPEN: {Hand: func(m *ice.Message, arg ...string) {}},
DREAM_CLOSE: {Hand: func(m *ice.Message, arg ...string) { DREAM_CLOSE: {Hand: func(m *ice.Message, arg ...string) {